Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[ty] Track narrowing unions to prevent exponential blowup

#22066Closed
Comparing
zb/narrow-track
(
fd525e8
) with
main
(
1a18ada
)
CodSpeed Performance Gauge
+73%
Untouched
13
Skipped
30
Archived
9

Benchmarks

52 total
large[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+73%
105.9 s61.3 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
-1%
5.2 s5.2 s

Commits

Click on a commit to change the comparison range
Base
main
1a18ada
×2
[ty] Track narrowing unions to prevent exponential blowup
2fd90af
7 months ago
by zanieb
-30.8%
propagate the narrowed element instead of skipping narrowing entirely
3cf876e
7 months ago
by zanieb
+1.12%
review
fd525e8
7 months ago
by zanieb
© 2026 CodSpeed Technology
Home Terms Privacy Docs