veluca93 / fpnge

Demo of a fast PNG encoder.
Apache License 2.0
88 stars 8 forks source link

Encode speed optimizations #6

Closed animetosho closed 2 years ago

animetosho commented 2 years ago

First batch of optimizations. These shouldn't affect the output in any way.

Comparison on a Ryzen 3900X:

Old code - image 1
   191.916 MP/s
    10.787 bits/pixel
Old code - image 2
   241.242 MP/s
    16.240 bits/pixel

New code - image 1
   204.904 MP/s
    10.787 bits/pixel
New code - image 2
   260.227 MP/s
    16.240 bits/pixel

CLA response: I release these changes to the public domain subject to the CC0 license (https://creativecommons.org/publicdomain/zero/1.0/).

google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

veluca93 commented 2 years ago

Could you resolve the conflicts? Thank you!