Available on crate feature
worker-batch and (crate features worker-batch or worker-pool or worker) only.Expand description
Parse phase: convert raw bytes into a sonic_rs::Value using SIMD
acceleration. This is the most CPU-intensive phase (~1-5 µs per message).
- JSON:
sonic_rs::from_slice(AVX2/NEON SIMD, 2-4x faster than serde_json) - MsgPack:
rmpvnative decode ->sonic_rs::Valuevia a direct value walker (normp_serde -> serde_jsonbridge; MsgPack messages are a small minority in practice) - Auto: byte-sniff via
PayloadFormat::detect, then dispatch
Enums§
- Parse
Error - Error produced when a single message fails to parse.
Functions§
- parse_
payload - Parse raw bytes into a
sonic_rs::Valueusing SIMD acceleration.