4 ms·
> What makes this library modern? It [...] consumes more CPU and memory to simplify the logic and improve reliability. Intriguingly unapologetic, but I think I
by gred 4y ago
> What makes this library modern? It [...] consumes more CPU and memory to simplify the logic and improve reliability.
Intriguingly unapologetic, but I think I'll stick to the PNG libraries that are mature enough to be both reliable and fast :-)
- nayuki 4y agoThese might change your mind on reliability: https://github.com/glennrp/libpng/issues https://github.com/glennrp/libpng/issues ; http://www.libpng.org/pub/png/libpng.html http://www.libpng.org/pub/png/libpng.html section "Security and Crash Bugs in Older Versions"; https://www.cvedetails.com/vulnerability-list/vendor_id-7294/Libpng.html https://www.cvedetails.com/vulnerability-list/vendor_id-7294... Regarding performance, I already lost the game before it started because I'm writing Java. If I wanted to squeeze CPU time, I would be writing C/C++/asm. So I decided to aim for conciseness and reliability instead of the endless stream of vulnerabilities.
- gred 4y agoPoint made, but I was actually thinking of the default Java platform support for writing PNG files (javax.imageio + zlib, which has a decent track record). https://www.cvedetails.com/product/111843/Zlib-Zlib.html?vendor_id=13265 https://www.cvedetails.com/product/111843/Zlib-Zlib.html?ven...