Skip to content

[ty] Avoid expanding same-enum comparisons#26270

Closed
charliermarsh wants to merge 10 commits into
mainfrom
charlie/fix-3830-strenum-comparison
Closed

[ty] Avoid expanding same-enum comparisons#26270
charliermarsh wants to merge 10 commits into
mainfrom
charlie/fix-3830-strenum-comparison

[ty] Clarify same-enum comparison terminology

e88a854
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Jun 24, 2026 in 0s

Performance Gate Passed

✅ 131 untouched benchmarks
🆕 6 new benchmarks
⏩ 4 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 Simulation ty_micro[repeated_str_enum_comparisons] N/A 140 ms N/A
🆕 Simulation ty_micro[enum_literal_union_comparison] N/A 85.7 ms N/A
🆕 Simulation ty_micro[narrowed_str_enum_comparison] N/A 82.7 ms N/A
🆕 Memory ty_micro[repeated_str_enum_comparisons] N/A 14 MB N/A
🆕 Memory ty_micro[enum_literal_union_comparison] N/A 11.6 MB N/A
🆕 Memory ty_micro[narrowed_str_enum_comparison] N/A 11.6 MB N/A

Comparing charlie/fix-3830-strenum-comparison (e88a854) with main (963ef2a)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.