[ty] Improve union builder performance #22048
Merged
CodSpeed HQ / CodSpeed Performance Analysis
succeeded
Dec 19, 2025 in 0s
Performance Gate Passed
Summary
⚡ 8 improvements
✅ 14 untouched
⏩ 30 skipped1
Benchmarks breakdown
| Mode | Benchmark | BASE |
HEAD |
Change | |
|---|---|---|---|---|---|
| ⚡ | WallTime | medium[pandas] |
66.7 s | 63.2 s | +5.62% |
| ⚡ | WallTime | medium[static-frame] |
20.3 s | 19.3 s | +4.69% |
| ⚡ | WallTime | small[tanjun] |
2.6 s | 2.5 s | +4.31% |
| ⚡ | WallTime | large[sympy] |
52.8 s | 50.2 s | +5.25% |
| ⚡ | WallTime | large[pydantic] |
128.5 s | 107.9 s | +19.12% |
| ⚡ | WallTime | small[altair] |
5.5 s | 5.3 s | +4.03% |
| ⚡ | Simulation | hydra-zen |
1.3 s | 1.3 s | +4.04% |
| ⚡ | Simulation | ty_micro[many_string_assignments] |
83.7 ms | 79.8 ms | +4.77% |
Footnotes
-
30 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. ↩
Loading