Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instantiate Job by id directly when iterating over ids.
`open_job` is a user-facing function and performs error checking on the id. This check involves a stat call to verify the job directory exists. When `Project` is looping over ids from `_get_job_ids`, the directory is known to exist (subject to race conditions). `stat` calls are expensive, especially on networked filesystems. Instantiating `Job` directly bypasses this check in `open_job`.
- Loading branch information