Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My understanding is that libpng is unoptimised and 5-10x faster is possible.


libpng is reasonably fast, and has SIMD optimizations. Make sure to compile it with a modern CPU target.

The biggest bottleneck in PNG decoding is zlib, which is not part of libpng. There are faster inflate implementations, but nowhere near 5x.

The second slowest thing is unfiltering, but it takes only 10-20% of the decoding time, so even lightspeed implementation would make little difference.

There is possibility of a 10x difference when encoding, but that's not due to libpng being slow, but because it's possible to apply worse compression and there are dedicated crappy-but-veryfast encoders.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: