Important
This README is for v3.x (current stable). v4.0.0-preview.1 is now available: more than twice the performance, stronger safety, and full Native AOT support, while staying feature- and wire-compatible with v3. Check out the v4 README and join the preview.
The extremely fast MessagePack serializer for C#. It is 10x faster than MsgPack-Cli and outperforms other C# serializers. MessagePack for C# also ships with built-in support for LZ4 compression - an extremely fast compression algorithm. Performance is important, particularly in applications like games, distributed computing, microservices, or data caches.
MessagePack has a compact binary size and a full set of general purpose expressive data types. Please have a look at the comparison with JSON, protobuf, ZeroFormatter section and learn why MessagePack C# is the fastest.
- Installation
- Quick Start
- Analyzer
- Built-in supported types
- Object Serialization
- DataContract compatibility
- Serializing readonly/immutable object members (SerializationConstructor)
- Serialization Callback
- Union
- Dynamic (Untyped) Deserialization
- Object Type Serialization
- Typeless
- Security
- Performance
- LZ4 Compression
- Comparison with protobuf, JSON, ZeroFormatter
- Hints to achieve maximum performance when using MessagePack for C#
- Extensions
- Experimental Features
- High-Level API (
MessagePackSerializer) - Low-Level API (
IMessagePackFormatter<T>) - Primitive API (
MessagePackWriter,MessagePackReader) - Main Extension Point (
IFormatterResolver) - MessagePackFormatterAttribute
- IgnoreFormatter
