Repository navigation
fix(checker): preserve default library member names after a flow limit - #1125
Conversation
Merging this PR will not alter performanceWarning oxc-project has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed. 1 warning
Comparing Footnotes
|
Performance change vs mainWorkflow run Β· main Clef gate: Clef estimated 56.2% default and single-threaded wall time, 53.0% peak RSS, 72.2% single-threaded instruction count impact probability. Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time. Measured medians (main β PR)
tsrs-lintRelease
Negative means the PR used less. Wall and CPU time deltas are medians of paired PR/main ratios; peak RSS compares medians. Measured lint medians (main β PR)
|
fixes #1118. when a file hits the control-flow depth limit (
TS2563), flow analysis stays disabled on that checker. under--fast, the same checker can then checklib.es5.d.ts, whereFunction[Symbol.hasInstance]resolves to an error type and causes two falseTS2430errors onCallableFunctionandNewableFunction. this keeps the flow bailout everywhere except a direct computed property name in a default library file starting at a bareFlowFlags::Start, and only outside Go-compatible history. ordinary mode is unchanged.largeControlFlowGraphfalseTS2430(4 CPUs, 4 checkers,--fast)TS2430controls)t3code-server& 19 CI catalog benchmarksadds a
flow_limitCLI integration test that fails 5/5 times without the fix