MessagePack
lastmod 2025-01-09created 2018-07-2014 edits
It's like JSON. but fast and small.
MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.
Implementations
- MessagePack for Python
- https://github.com/msgpack/msgpack-python
-
pip install msgpack - This seems to be the default one?
- MessagePack for JavaScript/ECMA-262
- https://github.com/msgpack/msgpack-javascript
-
npm install @msgpack/msgpack
- MessagePack for C# (.NET, .NET Core, Unity, Xamarin)
- https://github.com/neuecc/MessagePack-CSharp
- Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
Libraries
- msgpack-numpy - Serializes numpy objects with msgpack.
See also
- JSON
- Serialization
- MemoryPack - Ultra-high-performance zero-encoding binary serializer for C# and Unity