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
perf(builder): scope barrel iteration to newly-merged paths
Iteration 2+ of the JS barrel-discovery loop was re-querying the DB for
every key in fileSymbols rather than just barrels newly merged in the
previous pass, ballooning the work each iteration. The Rust orchestrator
already does this correctly via the `&newly_added` slice.
Wire the `string[]` returned by reparseBarrelFiles through the loop so
each pass only walks newly-merged paths' imports, and gate the
reexport-from DB query behind a `firstPass` flag — re-parsed barrels
haven't changed content, so they can't surface new reexport-from
candidates anyway. Matches the Rust seed-only
`collect_reexport_from_barrels` call.
No behavior change beyond perf; the regression test for #1174
(issue-1174-chained-barrel-incremental.test.ts) still passes on both
engines and full=1371 / incremental=1371 imports edges on the dogfooded
repo.
Addresses Greptile feedback on #1179.
0 commit comments