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

Shrink additional parser AST collections

#25465
Comparing
micha/parser-shrink-more-collections
(
d8914fe
) with
main
(
06dd02b
)
CodSpeed Performance Gauge
+7%
Improvement
29
Untouched
96

Benchmarks

125 total
parser[pydantic/types.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+14%
368.5 KB322.7 KB
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+13%
52.6 KB46.5 KB
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+12%
16 KB14.3 KB
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+10%
166.5 KB150.8 KB
ty_micro[pandas_tdd]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_pandas_tdd
CodSpeed Performance Gauge
+8%
39.4 MB36.4 MB
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
CodSpeed Performance Gauge
+7%
13.3 MB12.5 MB
ty_micro[gradual_vararg_call]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_gradual_vararg_call
CodSpeed Performance Gauge
+7%
13.1 MB12.3 MB
ty_micro[vararg_parameter_type_accumulation]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_vararg_parameter_type_accumulation
CodSpeed Performance Gauge
+6%
12 MB11.3 MB
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
CodSpeed Performance Gauge
+6%
13.5 MB12.7 MB
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
CodSpeed Performance Gauge
+6%
13.5 MB12.7 MB
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
CodSpeed Performance Gauge
+6%
14 MB13.2 MB
ty_micro[literal_match_fallthrough]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_match_fallthrough
CodSpeed Performance Gauge
+6%
12.4 MB11.7 MB
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+6%
816.8 KB772.2 KB
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
CodSpeed Performance Gauge
+6%
14.6 MB13.8 MB
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
CodSpeed Performance Gauge
+6%
22.9 MB21.6 MB
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
CodSpeed Performance Gauge
+6%
14.6 MB13.8 MB
ty_micro[large_isinstance_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_isinstance_narrowing
CodSpeed Performance Gauge
+6%
14.5 MB13.7 MB
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
CodSpeed Performance Gauge
+6%
15 MB14.2 MB
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
CodSpeed Performance Gauge
+6%
12.9 MB12.2 MB
ty_micro[typevar_mapping_small_accumulations]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_typevar_mapping_small_accumulations
CodSpeed Performance Gauge
+6%
14.8 MB14 MB
ty_micro[pydantic_core_schema_dict]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_pydantic_core_schema_dict
CodSpeed Performance Gauge
+5%
15.6 MB14.8 MB
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
CodSpeed Performance Gauge
+5%
15.7 MB15 MB
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
CodSpeed Performance Gauge
+5%
19.7 MB18.7 MB
ty_micro[literal_equality_fallthrough_guarded_any]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_equality_fallthrough_guarded_any
CodSpeed Performance Gauge
+5%
14.3 MB13.6 MB
ty_micro[many_protocol_members_mismatch]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_protocol_members_mismatch
CodSpeed Performance Gauge
+5%
19.2 MB18.3 MB

Commits

Click on a commit to change the comparison range
Base
main
06dd02b
+6.3%
Shrink additional parser AST collections
c844131
4 days ago
by MichaReiser
0%
Reserve Vec's with capacity of 1 for nodes unlikely to contain more
cb3f9b5
4 days ago
by MichaReiser
+0.22%
Back out parser exact initialization experiment
d8914fe
4 hours ago
by MichaReiser
© 2026 CodSpeed Technology
Home Terms Privacy Docs