Show HN: Stb_zip – 仅头文件的 C 语言 ZIP 解析器,无依赖,速度快

1作者: Forgret9 个月前
我编写了一个小巧的、仅包含头文件的 C 语言库,用于解析 ZIP 压缩包,且没有任何外部依赖。 它适用于从嵌入式设备到桌面游戏等各种平台,并支持“存储”和“deflate”两种压缩方式。 基准测试(Core i7-12700K,32GB RAM): - 解压 1GB 文件:0.8 秒(比 miniz 快 2.1 倍) - 解析 10 万个文件:12 毫秒(快 3.2 倍) - 计算 1GB 文件的 CRC32 值:0.2 秒(快 5.5 倍) GitHub:https://github.com/Ferki-git-creator/stb-zip MIT 许可,欢迎反馈。
查看原文
I&#x27;ve built a small, header-only C library to parse ZIP archives with no external dependencies. It works on everything from embedded devices to desktop games and supports both &quot;store&quot; and &quot;deflate&quot; compression.<p>Benchmarks (Core i7-12700K, 32GB RAM): - Decompress 1GB: 0.8s (2.1x faster than miniz) - Parse 100k files: 12ms (3.2x faster) - CRC32 of 1GB: 0.2s (5.5x faster)<p>GitHub: https:&#x2F;&#x2F;github.com&#x2F;Ferki-git-creator&#x2F;stb-zip<p>MIT licensed, feedback welcome.