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

[ty] Reduce size of `TypeInference`

#19435Merged
Comparing
origin/micha/shrinkg-type-inference
(
ea3a9ba
) with
main
(
0acc273
)
CodSpeed Performance Gauge
+2%
Archived
8

Benchmarks

8 total
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
28.8 s28.4 s
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+2%
4 s4 s
multithreaded[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+5%
284.7 ms271 ms
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+2%
7.1 s7 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+2%
1.7 s1.6 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
2.4 s2.4 s
small[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+2%
2.3 s2.2 s
large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
Archived
CodSpeed Performance Gauge
+1%
42.6 s42.1 s

Commits

Click on a commit to change the comparison range
Base
main
0acc273
+0.75%
Undo `Option<Box<Inner>>` for type check diagnostics
40c49d2
7 months ago
by MichaReiser
-0.13%
Move deferred to extra
d7bcb37
7 months ago
by MichaReiser
-1.7%
Split `Definition` and `ScopeInference`
d8e3471
7 months ago
by MichaReiser
+1.81%
Use slice for `bindings`, remove unused fields from `ScopeInference`
d0c8284
7 months ago
by MichaReiser
+0.71%
Use `Vec`s over `Map`/`Set` in inference builder for `deferred`, `bindings`, and `declarations`
c8a0aa1
7 months ago
by MichaReiser
-0.3%
Add `VecMap` and `VecSet`
2443fa5
7 months ago
by MichaReiser
+0.42%
Docs
ea3a9ba
7 months ago
by MichaReiser
© 2026 CodSpeed Technology
Home Terms Privacy Docs