PNG is slow because of deflate, not libpng — zlib-ng's SIMD wins

ssh4net · x · 2026-10-24

This thread explains the real bottleneck behind slow PNG decoding: zlib-ng is heavily SIMD-optimized while stock zlib is a legacy library, and deflate compression/decompression is what makes PNG slow. There's nothing faster than this SIMD deflate — nvcomp can decode/encode some deflate modes slightly faster, but overall SIMD deflate outperforms GPU by a lot. Wuffs likely uses the same SIMD optimizations, with more complexity than a standard PNG library.

Original post →

More from Infra

Infra channel →