anweiss / cddl

Concise data definition language (RFC 8610) implementation and JSON and CBOR validator in Rust
https://cddl.anweiss.tech
MIT License
91 stars 13 forks source link

Add new API for extracting the underling CBOR value from a CBORValidator for reuse #217

Open itamarst opened 9 months ago

itamarst commented 9 months ago

Fixes #216

This reduces the time for pycddl to do validation+deserialization combo for a small document from 2.5µs to 1.8µs, by allowing only a single CBOR parse.

Happy to do a different API variation if you prefer.

itamarst commented 9 months ago

Not really sure what's up with WASM tests.