# misa77: 超越LZ4的极速解压编解码器

Original title: Show HN: misa77 - a codec that decodes 2x faster than LZ4 (at better ratios)

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

▲ 164 · by [nonadhocproblem](<https://news.ycombinator.com/user?id=nonadhocproblem>) · 💬 49
[original](<https://github.com/welcome-to-the-sunny-side/misa77>) · [HN discussion](<https://news.ycombinator.com/item?id=48922838>)

## Summary

misa77是一款专为“一次写入、多次读取”场景设计的LZ系编解码器。它在x86和ARM架构上实现了比LZ4快1.5到3倍的解压速度，同时保持了更优的压缩率。虽然压缩速度较慢，但misa77在高度可压缩文件上表现尤为出色，且内存占用极低。通过实验性压缩模式，开发者可以牺牲压缩时间来换取更友好的微架构解压体验。

## Key quote

> misa77在解压吞吐量与压缩率的帕累托前沿上占据了一席之地，即便竞争对手的压缩率更差，它依然能实现更快的解压速度。

## HN discussion (49 comments)

- 作者通过分离 token 和 literal 数据流，消除了数据依赖的不确定性，从而让 CPU 乱序执行核心能更高效地预取和解析指令，这是实现超越 LZ4 解压速度的关键设计。
- 社区对 misa77 缺乏输入验证和格式不稳定的现状提出强烈警告，指出在不可信输入场景下这会导致未定义行为（UB）和潜在的数据丢失，使其难以直接用于生产环境。
- 有开发者分享将游戏对局数据压缩进 QR 码的实战经验，指出针对特定数据特征（如相对方向变化而非绝对坐标）进行编码，比通用算法能获得更高的压缩率。
- 针对性能对比的争议，测试者指出 misa77 在 AArch64 架构上的实际表现可能不如经过高度优化的 ClickHouse 版 LZ4，且其速度优势高度依赖数据的可压缩性。

---

## Cite

- Page: https://zeli.app/zh/story/48922838
- Date: 2026-07-15
- Source: github.com (https://github.com/welcome-to-the-sunny-side/misa77)
- Hacker News: https://news.ycombinator.com/item?id=48922838

## Other languages

- en: https://zeli.app/story/48922838 · markdown: https://zeli.app/story/48922838.md
- ja: https://zeli.app/ja/story/48922838 · markdown: https://zeli.app/ja/story/48922838.md
- ko: https://zeli.app/ko/story/48922838 · markdown: https://zeli.app/ko/story/48922838.md
- de: https://zeli.app/de/story/48922838 · markdown: https://zeli.app/de/story/48922838.md
- es: https://zeli.app/es/story/48922838 · markdown: https://zeli.app/es/story/48922838.md
