Commit Graph
4 Commits
Author SHA1 Message Date
ZebangChengandGitHub 3281fd15e0 Merge pull request #346 from tirth8205/perf/understand-pipeline
perf(understand): parallelise file I/O in compute-batches + extract-import-map (#76)
2026-06-06 16:25:49 +08:00
Tirth KananiandClaude Opus 4.7 1f8d165f86 fix(extract-import-map): preserve deterministic stderr order across concurrent loaders
Addresses the regression flagged by ZebangCheng on #346: under the
parallelised `buildResolutionContext`, `loadTsConfigs` /
`loadGoModules` / `loadPhpAutoloads` ran concurrently but each wrote
warnings to stderr inline as it iterated read results, so a fixture
with both a malformed `tsconfig.json` and a malformed `composer.json`
could emit `composer, tsconfig` instead of the pre-PR `tsconfig,
composer` depending on I/O timing.

Each loader now buffers its warnings into a returned array and the
caller drains them in canonical order (tsconfig → go → php) after
`Promise.all`, restoring byte-identical stderr output. Added a
regression test that fixtures both malformed configs and asserts the
tsconfig warning precedes the composer warning in stderr.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-05 16:19:31 +01:00
Zebang Cheng d9ae3c290c fix(extract-import-map): normalize tsconfig path-alias candidates with leading "./" (#214) 2026-05-25 14:02:01 +00:00
Yuxiang LinandGitHub a59a573a1d Merge pull request #204 from Lum1104/feat/semantic-batching-and-output-chunking
fix(#159): semantic batching + bundled importMap + Phase 1 speedup
2026-05-24 20:12:14 +08:00