mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-14 04:08:05 +00:00
resolveRImportInternal ran indexOf over the whole normalised file list for every source() import (O(files) each). The resolver already receives getWorkspaceFileIndex's per-pass normToRaw map (first raw spelling per normalised path, built once), so use it for the exact-path lookups; the legacy array-only call shape keeps the indexOf fallback. Behaviour is identical (both pick the first file in list order). New unit tests run one corpus (relative, ../, absolute, backslash and duplicate spellings, missing, suffix fallback) through both paths and through the live adapter, and assert the indexed path performs no indexOf scan (fails when the change is reverted). |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||