zerompk: The Fastest MessagePack Implementation for Rust and Its Optimization Techniques
I've released zerompk, a fast MessagePack serializer for Rust! https://github.com/nuskey8/zerompk The most widely used MessagePack serializer in Rust is probably rmp_serde. While this is fast enoug...

Source: DEV Community
I've released zerompk, a fast MessagePack serializer for Rust! https://github.com/nuskey8/zerompk The most widely used MessagePack serializer in Rust is probably rmp_serde. While this is fast enough, zerompk is designed with even greater speed in mind. Let's look at the benchmarks. Since MessagePack is a binary format, it's naturally faster than JSON serializers, but there's a significant difference even when compared to other MessagePack serializers like rmp_serde and msgpacker. How to Use Basic instructions can be found in the README file, but I'll give a brief explanation here as well. use zerompk::{FromMessagePack, ToMessagePack}; // The type to be serialized must implement FromMessagePack and ToMessagePack #[derive(FromMessagePack, ToMessagePack)] #[msgpack(array)] // Selectable from array/map, default is array pub struct Person { #[msgpack(key = 0)] // Specify key, it is recommended to make it explicit whenever possible pub name: String, #[msgpack(key = 1)] pub age: u32, #[msgpac