-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End-to-end decoding benchmarks of paletted PNG images. #453
End-to-end decoding benchmarks of paletted PNG images. #453
Conversation
@fintelia, can you PTAL? Special thanks to @Shnatsel for pointing out the mistake I made in my earlier attempt to cover |
Could we use a smaller test image? 8 MB is pretty large for a file checked into the git repo |
FWIW the larger the decompressed image is, the more the palette expansion pass dominates the runtime. On 1024x1024 images it's about 20% of the time, on the map image it's about 40%, on the zune-png benchmarking image shared at the start of #393 it's about 60%. I think it is possible to create an image e.g. with large areas of flat fill that would be small when compressed, decompress into an image with large dimensions, and have the palette pass account for a large portion of the image decoding time. Or maybe the palette pass should just be benchmarked separately. |
I suggest using this image instead: Stadt_Onex_2021_posterized_med It still spends 40% of the time in palette expansion while only being 1.4MB in size (as opposed to the 8MB image proposed originally). |
FWIW, I feel that it is desirable to have a somewhat realistic paletted test image that also highlights the performance of OTOH, if we decide that 8MB is unreasonable, then we can try testing with existing benchmarks and a function-level benchmark that I am working on at https://github.com/anforowicz/image-png/tree/palette-benchmarks-func2. We would still want to land the current PR to ensure that Edit: Ooops... it seems that I missed @Shnatsel's reply above, before posting my comment... :-/ |
Thanks - let me switch to this image. |
b49f246
to
9703b07
Compare
Actually, I wasn't able to find the image that you are referring to. But maybe this is fine - I just grabbed https://commons.wikimedia.org/wiki/File:Stadt_Onex_2021.png at a slightly smaller resolution and converted to |
@fintelia, can you PTAL again? |
No description provided.