Skip to content

Commit 2293eb8

Browse files
committed
perf: optimize directory scanning with early termination and O(1) queue operations
- Add limit hint parameter to stop scanning when enough directories are collected - Replace Array.shift() with index-based traversal for O(1) dequeue operations - Preserve first-level directory prioritization with limits
1 parent dbcb52c commit 2293eb8

File tree

2 files changed

+356
-517
lines changed

2 files changed

+356
-517
lines changed

0 commit comments

Comments
 (0)