Open lsoft opened 1 year ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
(a copy of https://github.com/dotnet/Microsoft.Maui.Graphics/issues/495)
I write this into issue, because I'm not sure we want such optimizations at all.
The discussed method: https://github.com/dotnet/maui/blob/main/src/Graphics/src/Graphics/Color.cs#L757
Now, the method looks like
I found that there is the room for optimization. On my machine the data looks like (PTAL on allocations too):
The benchmark method looks like:
The optimized method:
(the idea taken from from https://github.com/dotnet/roslyn/issues/56374)
Few issues to mention:
If maintainers decides that this approach is fine, few additional points:
Any thoughts? Thanks.