Skip to content
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

much faster toStraightAlpha + other stuff #440

Merged
merged 3 commits into from
Jun 15, 2022
Merged

much faster toStraightAlpha + other stuff #440

merged 3 commits into from
Jun 15, 2022

Conversation

guzba
Copy link
Collaborator

@guzba guzba commented Jun 14, 2022

not only is the conversion much faster, it is better due to being able to use round(). this does imply all output images change a bit.

before:

fill_rgba .......................... 0.382 ms      0.387 ms    ±0.004  x1000
isOpaque ........................... 0.399 ms      0.404 ms    ±0.009  x1000
toStraightAlpha ................... 11.180 ms     11.446 ms    ±0.173   x435

after:

fill_rgba .......................... 0.289 ms      0.310 ms    ±0.015  x1000
isOpaque ........................... 0.164 ms      0.170 ms    ±0.009  x1000
toStraightAlpha .................... 4.418 ms      4.523 ms    ±0.127  x1000

@guzba guzba changed the title much faster toStraightAlpha much faster toStraightAlpha + other stuff Jun 14, 2022
@treeform treeform merged commit 0af140b into treeform:master Jun 15, 2022
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.

2 participants