Files
repomix-mirror/tests
Kazuki Yamada 7ed5dcf60a perf(core): Skip worker threads for lightweight file processing
When compress mode is off (the default), file processing only does
lightweight regex/string operations (truncateBase64, removeComments,
removeEmptyLines, trim). Worker thread overhead (pool creation,
structured clone of all file content, message passing, WASM module
loading) far exceeds the computation cost.

- CHANGE: Use main-thread promisePool instead of worker threads when
  compress is disabled; extract shared promisePool utility from
  fileCollect for reuse
- WHY: Benchmarks show -6% (Ubuntu/macOS) to -17% (Windows) improvement
  by avoiding worker overhead for simple string operations
- CONSTRAINT: Compress mode still requires workers because tree-sitter
  WASM parsing is CPU-heavy per file

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 00:32:32 +09:00
..
2026-02-17 13:55:26 +00:00