perf(discovery): reduce redundant filesystem scans in find_job #141
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!141
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0100-find-job-optimize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Reuse
scan_intervals()results instead of re-iteratingjobs_dirfor symlink lookup infind_job().Why
Avoids redundant filesystem scans —
discover_jobs()already discovers all jobs, andscan_intervals()provides the interval structure without a second pass.Testing
Closes #100
5a07b1256912e1b60df012e1b60df09112be6a8dAutomated Review — PR #141
Result: APPROVED
Clean perf fix — reuses
scan_intervals()results instead of manually re-iteratingjobs_dirfor symlink lookup. Also simplifies path comparison (removes redundantjob.path == targetcheck sincejob.path.resolve()covers it). Closes #100.No suggestions.