MemoryPack: A Zero-Encoding Binary Serializer for Extreme C# Performance

MemoryPack: Zero encoding extreme performance binary serializer for C#

MemoryPack: A Zero-Encoding Binary Serializer for Extreme C# Performance

I created MemoryPack, my fourth serializer, to deliver extreme performance for C# and Unity by using a zero-encoding design that copies memory directly. Leveraging .NET 7 and C# 11 source generators, it avoids dynamic code generation and reflection, achieving speeds up to fifty times faster than other binary serializers for struct arrays. This approach supports modern I/O APIs and offers full Unity compatibility while maintaining a clean, POCO-friendly interface.

For struct array, MemoryPack is even more powerful, with speeds up to x50 ~ x200 greater than other serializers.
  1. jeremycarter

    Surprised how well the Orleans serializer performs for most uses cases.

  2. HackerThemAll

    It's nice when you're absolutely sure you won't need schema evolution. Then go for it. If you have a tiny bit of doubt, use a binary alternative that supports it, which for me is Protobuf. You'll get gRPC support for free, which you'll most likely need anyway.

  3. aappleby

    XTREEEEM

More from this day

2026-07-23