oxc-project
oxc
BlogDocsChangelog

perf(linter): use top-level match for `const-comparisons`

#14581Merged
Comparing
10-13-perf_linter_use_top-level_match_for_const-comparisons_
(
8df1e24
) with
main
(
cf9f56c
)
CodSpeed Performance Gauge
0%
Untouched
4
Skipped
33

Benchmarks

Skipped (33)

Passed

linter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
65.2 ms65 ms
linter[cal.com.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
597.5 ms595.7 ms
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
24.4 ms24.4 ms

Commits

Click on a commit to change the comparison range
Base
main
cf9f56c
+0.34%
perf(linter): use top-level match for `const-comparisons` (#14581) Using a match means we only need to call one function instead of two. Also enables the linter codegen to analyze this rule.
8df1e24
1 month ago
by camchenry
© 2025 CodSpeed Technology
Home Terms Privacy Docs