Skip to content

Reduce the number of memory allocations in lossless WebP encoder #2940

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SladeThe
Copy link

@SladeThe SladeThe commented Jun 6, 2025

This PR closes #2934

The results of benchmark #55 EncodeWebp:

Before

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
'ImageSharp Webp Lossless' 105.31 ms 24.582 ms 1.347 ms 2000.0000 1800.0000 1400.0000 20490.55 KB

After

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
'ImageSharp Webp Lossless' 100.61 ms 15.196 ms 0.833 ms 2000.0000 2000.0000 2000.0000 3904.68 KB

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lossless WebP encoder allocates A LOT
2 participants