GitNexus/gitnexus/test
Mick Cooney 30caa37906 perf(r): look up source() targets by map instead of indexOf per import
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).
2026-10-12 10:53:26 +01:00
..
fixtures test(r): pin the non-indexed R file types and the experimental classification 2026-10-12 10:16:47 +01:00
helpers test(r): replace wall-clock query-cost limits with a shared scaling guard 2026-10-12 10:16:47 +01:00
integration test(r): pin documented limits, fix hand-rolled cleanup and stale test text 2026-10-12 10:53:26 +01:00
unit perf(r): look up source() targets by map instead of indexOf per import 2026-10-12 10:53:26 +01:00
utils feat(storage): add configurable index storage and content retention tiers (#3060) 2026-09-12 20:31:55 +00:00