Skip to content

Conversation

matthewrosse
Copy link

This PR solves a performance issue with the current SolidFillColorMask apply_mask function implementation.

Benchmarks for content length of 1000 bytes (bg != white && fg != black):

Before: 440.4522 seconds
After: 0.4058 seconds

Result: x1100 speedup

@bartTC
Copy link
Member

bartTC commented Jul 22, 2025

@matthewrosse Would you check your code against the latest state of main, especially the changes of #372? Does this add improvement over the current solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants