Latest Results
perf: replace TypeScript program creation with OXC parser in import analyzer (#98)
Eliminate ts.createProgram() from the import dependency graph builder,
which was creating a full TypeScript compilation (scanner, parser, binder,
type checker) for all reachable files just to support unused import
detection.
Instead, use oxc-parser's pre-extracted module.staticImports,
module.staticExports, and module.dynamicImports for reference collection,
and text-based regex matching for unused import detection.
This removes ~56% of CPU overhead (TS scanner 35%, binder 14%, internals
8%) and yields a 500x-1600x speedup on import analysis benchmarks.
Closes #97
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> perf: replace TypeScript program creation with OXC parser in import analyzer
Eliminate ts.createProgram() from the import dependency graph builder,
which was creating a full TypeScript compilation (scanner, parser, binder,
type checker) for all reachable files just to support unused import
detection.
Instead, use oxc-parser's pre-extracted module.staticImports,
module.staticExports, and module.dynamicImports for reference collection,
and text-based regex matching for unused import detection.
This removes ~56% of CPU overhead (TS scanner 35%, binder 14%, internals
8%) and yields a 500x-1600x speedup on import analysis benchmarks.
Closes #97
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>perf/replace-ts-program-with-oxc Latest Branches
+1%
docs/add-benchmark-results ×4,700
perf/replace-ts-program-with-oxc N/A
codspeed-wizard-1774013447754 © 2026 CodSpeed Technology