aviramha / ormsgpack

Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
Apache License 2.0
256 stars 16 forks source link

Rewrite deserializer #295

Closed exg closed 1 month ago

exg commented 1 month ago

This PR introduces a new deserializer implementation that does not use rmp-serde. The new implementation is faster and enables optimizations that are not possible with rmp-serde. The main one is to not perform the expensive utf-8 validation for map string keys that are present in the cache, as it is redundant.