You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The per-entry Array.from(directories) plus repeated prefix joins made the initial filesystem scan O(files × directories). Directories now accumulate in place in a set and materialize once per query. The fix and coverage are on the branch of PR #48638.
Fixed on the branch of PR #48638: state.directories is now a Set that accumulates prefixes in place (no per-entry Array.from, no per-prefix re-joins) and is materialized once per query.
The quadratic directory materialization is fixed in v2: the scan accumulates files and directories in Maps, and only materializes candidates when a search runs. Path-prefix split/join operations remain, but the per-file Array.from(directories) is gone.
Activity
AceRothstein71 commentedon Sep 17, 2026
The per-entry
Array.from(directories)plus repeated prefix joins made the initial filesystem scan O(files × directories). Directories now accumulate in place in a set and materialize once per query. The fix and coverage are on the branch of PR #48638.AceRothstein71 commentedon Sep 17, 2026
Fixed on the branch of PR #48638:
state.directoriesis now aSetthat accumulates prefixes in place (no per-entryArray.from, no per-prefix re-joins) and is materialized once per query.neriousy commentedon Oct 19, 2026
The quadratic directory materialization is fixed in v2: the scan accumulates files and directories in Maps, and only materializes candidates when a search runs. Path-prefix split/join operations remain, but the per-file
Array.from(directories)is gone.