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

Original title: MemoryPack: Zero encoding extreme performance binary serializer for C#

> Hacker News story 48967506 · language: en · submitted 2026-07-19
> Web version: https://zeli.app/story/48967506
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 33 · by [breve](<https://news.ycombinator.com/user?id=breve>) · 💬 6
[original](<https://github.com/Cysharp/MemoryPack>) · [HN discussion](<https://news.ycombinator.com/item?id=48967506>)

## Summary

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.

## Key quote

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

## HN discussion (6 comments)

### [jeremycarter](<https://news.ycombinator.com/item?id=49015678>)

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

### [HackerThemAll](<https://news.ycombinator.com/item?id=49019333>)

> 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.

### [aappleby](<https://news.ycombinator.com/item?id=49015212>)

> XTREEEEM

---

## Cite

- Page: https://zeli.app/story/48967506
- Date: 2026-07-19
- Source: github.com (https://github.com/Cysharp/MemoryPack)
- Hacker News: https://news.ycombinator.com/item?id=48967506

## Other languages

- zh: https://zeli.app/zh/story/48967506 · markdown: https://zeli.app/zh/story/48967506.md
- ja: https://zeli.app/ja/story/48967506 · markdown: https://zeli.app/ja/story/48967506.md
- ko: https://zeli.app/ko/story/48967506 · markdown: https://zeli.app/ko/story/48967506.md
- de: https://zeli.app/de/story/48967506 · markdown: https://zeli.app/de/story/48967506.md
- es: https://zeli.app/es/story/48967506 · markdown: https://zeli.app/es/story/48967506.md
