Avatar for the MarshalX user
MarshalX
python-libipld
BlogDocsChangelog

Optimize DAG-CBOR map decode with key-intern cache and KnownHash insert

#106Merged
Comparing
optimize-decode-key-intern-cache
(
f7b0694
) with
main
(
4ea29bb
)
CodSpeed Performance Gauge
+21%
Improvement
14
Untouched
178

Benchmarks

192 total
test_dag_cbor_decode_real_data[twitter.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+54%
8.1 ms5.2 ms
test_dag_cbor_decode_real_data[github.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+48%
731.5 µs494.4 µs
test_decode_car
pytests/test_decode_car.py
CodSpeed Performance Gauge
+39%
511.4 ms367.5 ms
test_dag_cbor_decode_real_data[citm_catalog.json]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+39%
19.9 ms14.4 ms
test_dag_cbor_decode_fixtures[dagpb_11unnamedlinks+data]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+20%
33.4 µs27.8 µs
test_dag_cbor_decode_fixtures[dagpb_7unnamedlinks+data]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+15%
27.2 µs23.7 µs
test_dag_cbor_decode_fixtures[map-keysort]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+15%
18.2 µs15.9 µs
test_dag_cbor_decode_fixtures[garbage-18]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+14%
40.1 µs35.3 µs
test_dag_cbor_decode_fixtures[garbage-03]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+12%
38.8 µs34.6 µs
test_dag_cbor_decode_fixtures[dagpb_4namedlinks+data]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+12%
23.7 µs21.2 µs
test_dag_cbor_decode_fixtures[garbage-19]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+12%
26.6 µs23.8 µs
test_dag_cbor_decode_fixtures[dagpb_empty]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+12%
13.5 µs12.1 µs
test_dag_cbor_decode_fixtures[dagpb_Data_zero]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+11%
14.5 µs13 µs
test_dag_cbor_decode_fixtures[map-1_pair]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+10%
13.2 µs12 µs
test_dag_cbor_decode_fixtures[cid-mapof]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+10%
27.4 µs24.9 µs
test_dag_cbor_decode_fixtures[garbage-04]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+10%
26.8 µs24.4 µs
test_dag_cbor_decode_fixtures[garbage-07]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+9%
30.1 µs27.5 µs
test_dag_cbor_decode_fixtures[garbage-17]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+9%
32.9 µs30.3 µs
test_dag_cbor_decode_fixtures[dagpb_simple_forms_2]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
20.2 µs18.7 µs
test_dag_cbor_decode_fixtures[ipns]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
16 µs14.9 µs
test_dag_cbor_decode_fixtures[dagpb_2link+data]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
20.9 µs19.4 µs
test_dag_cbor_decode_fixtures[garbage-11]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
54 µs50.1 µs
test_dag_cbor_decode_fixtures[dagpb_simple_forms_3]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+8%
20.1 µs18.7 µs
test_dag_cbor_decode_fixtures[dagpb_simple_forms_4]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
19.3 µs18.1 µs
test_dag_cbor_decode_fixtures[map-with_complex_entries]
pytests/test_dag_cbor.py
CodSpeed Performance Gauge
+7%
27.2 µs25.6 µs

Commits

Click on a commit to change the comparison range
Base
main
4ea29bb
+21.99%
Optimize DAG-CBOR map decode with key-intern cache and KnownHash insert
fa4ee74
1 month ago
by MarshalX
-1.34%
Merge branch 'main' into optimize-decode-key-intern-cache
558ea2b
1 month ago
by MarshalX
+0.82%
suppress clippy
f7b0694
1 month ago
by MarshalX
© 2026 CodSpeed Technology
Home Terms Privacy Docs