Closed fintelia closed 1 year ago
Interestingly the results are reversed if I first re-encode each image with fdeflate (making the zlib stream incredibly literal heavy):
Directory Ratio zune-png image-png
--------- ------- -------------------- --------------------
Total 0.000% 150 mps 0.509 GiB/s 183 mps 0.622 GiB/s
I did some more optimization of how fdeflate builds decoding tables, and performance is now even closer:
Directory Ratio zune-png Decode
--------- ------- -------------------- --------------------
Total 0.000% 181 mps 0.614 GiB/s 179 mps 0.608 GiB/s
This PR brings image-png decoding performance to around 90-95% of what zune-png can do. It uses a work-in-progress branch of fdeflate which adds support for arbitrary zlib streams and incorporates some of the optimizations from zune-inflate.