Optimization?
#84232
Replies: 1 comment 1 reply
-
If this is something that tends to appear on hot paths, and you can offer a PR that speeds it up without adding unreasonable complexity, we'd likely welcome that. (Is it showing up in hot path for your projects?) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Different ways to optimize but I wonder if it would it be better to instead of looping through all the colors in ColorTable each time and calling ToARGB and then checking each one against target, would one or more of the following be better:
Yes I know the ColorTable isn't huge. So just more of a would another way eek out anything better or is it good enough.
https://source.dot.net/#System.ComponentModel.TypeConverter/src/libraries/Common/src/System/Drawing/ColorConverterCommon.cs,608eb04e851354ba,references
Beta Was this translation helpful? Give feedback.
All reactions