perf(discovery): reduce redundant filesystem scans in find_job #141

Merged
fuzzy merged 1 commit from fix/0100-find-job-optimize into main 2026-07-05 17:13:01 +00:00
Owner

What

Reuse scan_intervals() results instead of re-iterating jobs_dir for symlink lookup in find_job().

Why

Avoids redundant filesystem scans — discover_jobs() already discovers all jobs, and scan_intervals() provides the interval structure without a second pass.

Testing

  • 145 unit tests pass
  • Pre-commit hooks pass

Closes #100

## What Reuse `scan_intervals()` results instead of re-iterating `jobs_dir` for symlink lookup in `find_job()`. ## Why Avoids redundant filesystem scans — `discover_jobs()` already discovers all jobs, and `scan_intervals()` provides the interval structure without a second pass. ## Testing - [x] 145 unit tests pass - [x] Pre-commit hooks pass Closes #100
perf(discovery): reduce redundant filesystem scans in find_job
Some checks failed
CI / test (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
5a07b12569
Reuse scan_intervals results instead of re-iterating jobs_dir
for symlink lookup.
Closes #100
fuzzy force-pushed fix/0100-find-job-optimize from 5a07b12569
Some checks failed
CI / test (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
to 12e1b60df0
Some checks failed
CI / lint (pull_request) Successful in 1m18s
CI / test (pull_request) Has been cancelled
2026-07-05 17:00:50 +00:00
Compare
fuzzy self-assigned this 2026-07-05 17:01:21 +00:00
fuzzy force-pushed fix/0100-find-job-optimize from 12e1b60df0
Some checks failed
CI / lint (pull_request) Successful in 1m18s
CI / test (pull_request) Has been cancelled
to 9112be6a8d
All checks were successful
CI / test (pull_request) Successful in 48s
CI / lint (pull_request) Successful in 1m21s
2026-07-05 17:05:15 +00:00
Compare
the.auditor left a comment

Automated Review — PR #141

Result: APPROVED


Clean perf fix — reuses scan_intervals() results instead of manually re-iterating jobs_dir for symlink lookup. Also simplifies path comparison (removes redundant job.path == target check since job.path.resolve() covers it). Closes #100.

No suggestions.

## Automated Review — PR #141 **Result: APPROVED** --- Clean perf fix — reuses `scan_intervals()` results instead of manually re-iterating `jobs_dir` for symlink lookup. Also simplifies path comparison (removes redundant `job.path == target` check since `job.path.resolve()` covers it). Closes #100. No suggestions.
fuzzy merged commit 9112be6a8d into main 2026-07-05 17:13:01 +00:00
fuzzy deleted branch fix/0100-find-job-optimize 2026-07-05 17:13:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai!141
No description provided.