Commit 793610e
authored
Optimize parsing of color strings into KnownColor enum, remove allocations (#9669)
* Speed up parsing of color strings to KnownColors
* Convert literals to PascalCase/Enum form, fix first-char comparison
* Decrease code-size back to original and save 0.3ns in worst-case1 parent acfc83e commit 793610e
File tree
1 file changed
+500
-356
lines changed- src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media
1 file changed
+500
-356
lines changed
0 commit comments