Repository navigation
perf(core): P3 remove quadratic snapshot directory scans — red-first - #24
Conversation
Source-grounded high-latency pinned project baseline. Deterministic 200-dependency Map key visit work counter requiring 200 verified static edges; test-only RED before optimization. Preserve original eight-cell CI.
Preserve original 160000-key red witness for 200 proven edges. Index existing source directories once per graph snapshot and memoize pure per-source TypeScript config; all semantic negatives and 8-cell CI retained. No P7 label, holdout, or release changes.
…source P7 main Preserve original quadratic 160000-key RED and bounded engine fix; add local-only 5k x3 p50/p95/RSS plus 50k x1 evidence workflow. Recheck all 8 OS/Node and full 15-project independent oracle before merge. No release.
P3 pinned before/after evidence (append-only)
The synthetic import chain does not represent all monorepos. P7 helped identify the performance bottleneck; mark P7 exposed for later release-level post-change accuracy, retain its untouched first result and prepare a fresh P8. Do not merge until complete unchanged 8 OS/Node CI + byte parity and independent 15-project TypeChecker/Knip on exact updated PR SHA; then re-check merge SHA. No release/tag/npm publish. |
Preserve 160000-key RED regression and exact directory-index optimizer, graft on PR23 accepted main. Recheck all OS/Node 8-platform parity, 15 source oracle/Knip and 5k/50k profile, no P7 labels/release changes.
Retain original 5000 x3 and 50000 x1 results as historical, collect 50000 x3 cold/warm/single-file-edit RSS on same runner without claiming population speed. Preserve all independent accuracy/byte parity gates.
P3 supplemental repeated 50k performance evidence (append-only)On exact updated PR SHA
All samples generated 5001 / 50001 indexed files, 15001 / 150001 edges; profile input is a synthetic import chain, not real-monorepo/poulation latency. Report p95 is the maximum of only three observations, not a confidence interval. Preserve earlier original 50k x1 artifact 14810446100 as historical rather than replacing evidence. Full eight-platform push/PR + byte parity, independent 15-source/Knip and exact merge-SHA gates remain mandatory; do not release. |
Initial commit 52e39ab contains tests ONLY. Source-backed baseline is first P7 exact #45155575563: 2194/5006/4426 indexed files cost 13.7/84.7/96.4 seconds; earlier exposed TanStack Table 3146 files ~26.5s. The current
directoryExistsrepeatedly spreads all file keys for each module resolution. Deterministic Map-key-visit test must RED before fix, while retaining all 200 proved static edges. Later optimize with a one-time snapshot directory set, keep all UNKNOWN and negative controls, require full 8× OS/Node+byte parity, independent original corpus and merge SHA. P7 timing informed the fix, so preserve P7 original first score but mark it exposed for future release acceptance; a fresh P8 must be recruited. No release/tag/npm publish.