Avatar for the Stranger6667 user
Stranger6667
jsonschema
BlogDocsChangelog

fix: Memory not reclaimed when a validator for a schema with recursive `$ref` or `$dynamicRef` is dropped

#1126Merged
Comparing
dd/fix-leak
(
57efb74
) with
master
(
0a7e270
)
CodSpeed Performance Gauge
0%
Untouched
78

Benchmarks

78 total
validate[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+4%
3.8 µs3.6 µs
evaluate[unevaluated_properties]
crates/jsonschema/benches/unevaluated_properties.rs::benches::run_benchmarks
CodSpeed Performance Gauge
+4%
121.6 µs117.3 µs
is_valid[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+2%
1.2 µs1.2 µs
resolve[small]
crates/jsonschema-referencing/benches/anchor.rs::benches::bench_anchor_lookup::Anchor Lookup
CodSpeed Performance Gauge
+2%
3.1 µs3 µs
prepare_owned_with_specifications[GeoJSON]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
+1%
82 µs80.9 µs
prepare_owned_with_specifications[Fast]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
+1%
38.7 µs38.2 µs
prepare_owned_with_specifications[CITM]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
+1%
54 µs53.5 µs
pointer[single]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
+1%
4.4 µs4.4 µs
is_valid[unevaluated_items]
crates/jsonschema/benches/unevaluated_items.rs::benches::run_benchmarks
CodSpeed Performance Gauge
+1%
11 µs10.9 µs
iter_errors[unevaluated_items]
crates/jsonschema/benches/unevaluated_items.rs::benches::run_benchmarks
CodSpeed Performance Gauge
+1%
16.1 µs16 µs
build[Fast]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+1%
139.9 µs139.2 µs
evaluate[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
351.3 ms349.9 ms
prepare_borrowed_with_specifications[Swagger]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
459.2 µs457.5 µs
prepare_owned_with_specifications[Open API]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
314.5 µs313.4 µs
is_valid[unevaluated_properties]
crates/jsonschema/benches/unevaluated_properties.rs::benches::run_benchmarks
CodSpeed Performance Gauge
0%
46.3 µs46.2 µs
iter_errors[unevaluated_properties]
crates/jsonschema/benches/unevaluated_properties.rs::benches::run_benchmarks
CodSpeed Performance Gauge
0%
59.2 µs59 µs
is_valid[FHIR/Fhir]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
84 µs83.8 µs
is_valid[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
7.5 ms7.5 ms
validate[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
7.5 ms7.5 ms
pointer[long]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
0%
12.8 µs12.8 µs
is_valid[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
4.6 ms4.6 ms
evaluate[FHIR/Fhir]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
219.3 µs219 µs
prepare_owned_with_specifications[Swagger]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
477.3 µs476.7 µs
prepare_borrowed[draft 6]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
32.1 µs32 µs
prepare_borrowed[draft 7]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
33.1 µs33 µs

Commits

Click on a commit to change the comparison range
Base
master
0a7e270
-0.3%
fix: Memory not reclaimed when a validator for a schema with recursive `$ref` or `$dynamicRef` is dropped
57efb74
19 days ago
by Stranger6667
© 2026 CodSpeed Technology
Home Terms Privacy Docs