用 Zig 编写的小巧且相当快速的 QOI 解码器

Lobsters Hottest 工具

摘要

Dekoodaaja 是一个用 Zig 编写的快速小巧的 QOI 图像解码器,基准测试表明其性能优于其他 QOI 解码器实现。

<p><a href="https://lobste.rs/s/wdke4a/small_reasonably_fast_qoi_decoder">评论</a></p>
查看原文
查看缓存全文

缓存时间: 2026/08/30 18:03

sorvi-platform/dekoodaaja 来源: https://github.com/sorvi-platform/dekoodaaja

Dekoodaaja

为各种图像格式提供快速解码器。(目前仅支持 QOI)

基准测试

# AMD Ryzen 7 3700X 8核处理器
nix run .#bench -- -Doptimize=ReleaseFast
qoi (image/qoi): 输入速率 0.44 GB/s,输出速率 6.17 GB/s,耗时 170.081微秒
qoi (image/qoi): 输入速率 0.14 GB/s,输出速率 2.00 GB/s,耗时 523.124微秒
qoi-simd (image/qoi): 输入速率 0.11 GB/s,输出速率 1.49 GB/s,耗时 705.961微秒
magicqoi (image/qoi): 输入速率 0.28 GB/s,输出速率 3.86 GB/s,耗时 271.645微秒
zig-qoi (image/qoi): 输入速率 0.24 GB/s,输出速率 3.42 GB/s,耗时 306.602微秒
zqoi (image/qoi): 输入速率 0.18 GB/s,输出速率 2.55 GB/s,耗时 410.529微秒
rapid-qoi (image/qoi): 输入速率 0.32 GB/s,输出速率 4.44 GB/s,耗时 236.404微秒
qoi-rust (image/qoi): 输入速率 0.32 GB/s,输出速率 4.48 GB/s,耗时 234.275微秒
qoicoubeh (image/qoi): 输入速率 0.34 GB/s,输出速率 4.75 GB/s,耗时 220.692微秒
# AMD Ryzen 7 3700X 8核处理器
nix run .#bench -- -Doptimize=ReleaseSmall
qoi (image/qoi): 输入速率 0.20 GB/s,输出速率 2.82 GB/s,耗时 372.37微秒
qoi (image/qoi): 输入速率 0.15 GB/s,输出速率 2.11 GB/s,耗时 496.278微秒
qoi-simd (image/qoi): 输入速率 0.11 GB/s,输出速率 1.49 GB/s,耗时 704.787微秒
magicqoi (image/qoi): 输入速率 0.18 GB/s,输出速率 2.58 GB/s,耗时 407.179微秒
zig-qoi (image/qoi): 输入速率 0.11 GB/s,输出速率 1.49 GB/s,耗时 703.877微秒
zqoi (image/qoi): 输入速率 0.15 GB/s,输出速率 2.13 GB/s,耗时 491.462微秒
rapid-qoi (image/qoi): 输入速率 0.25 GB/s,输出速率 3.56 GB/s,耗时 294.652微秒
qoi-rust (image/qoi): 输入速率 0.19 GB/s,输出速率 2.64 GB/s,耗时 396.598微秒
qoicoubeh (image/qoi): 输入速率 0.19 GB/s,输出速率 2.66 GB/s,耗时 394.937微秒

相似文章

针对 Qwen 的最快推测解码

Reddit r/LocalLLaMA

一种针对 Qwen 模型的最快推测解码的新实现已可用,通过 Hugging Face 分支在 sglang 中得到支持,后续将在 uzu 引擎中获得支持。

z-lab/Qwen3.6-35B-A3B-DFlash

Hugging Face Models Trending

z-lab 发布 DFlash,一种基于轻量级块扩散模型的投机解码草稿器,可并行生成 15–16 个 token,为 Qwen3.6-35B-A3B 推理带来最高 2.9× 加速。