Avatar for the pydantic user
pydantic
monty
BlogDocsChangelog

Unify recursion and data depth guards

#198
Comparing
dh/unified-depth-guard
(
34b49c1
) with
main
(
b316ce4
)
CodSpeed Performance Gauge
-1%
Untouched
13

Benchmarks

13 total
empty_tuples__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
28.6 ms27.9 ms
list_comp__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
318.4 µs314.8 µs
dict_comp__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
626 µs625.6 µs
list_append_str__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
110.4 ms110.4 ms
loop_mod_13__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
269.7 µs269.7 µs
end_to_end__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
39.1 µs39.2 µs
pair_tuples__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
89.3 ms89.5 ms
kitchen_sink__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
63.1 µs63.4 µs
list_append_int__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
50.4 ms51 ms
fib__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
156 ms159.3 ms
add_two__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
8.5 µs8.6 µs
list_append__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-3%
12.8 µs13.1 µs
func_call_kwargs__monty
crates/monty/benches/main.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-3%
19.7 µs20.2 µs

Commits

Click on a commit to change the comparison range
Base
main
b316ce4
-11.55%
Fix cases which crashed with stack overflow
1c6a7b6
14 hours ago
by davidhewitt
-0.3%
Merge remote-tracking branch 'origin/main' into dh/unified-depth-guard
ecd3f6d
3 hours ago
by davidhewitt
+11.21%
avoid unconditional alloc in dec_ref
34b49c1
3 hours ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs