[Performance] Avoid LINQ in TextBlock.UpdateHyperlinks
#15805
Labels
area/performance 📈
Categorizes an issue or PR as relevant to performance
area/textblock
Categorizes an issue or PR as relevant to the TextBlock control
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/enhancement
New feature or request
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
This causes unnecessary allocations
Note: the allocation happens regardless of whether the TextBlock actually has a hyperlink. It happens whenever the TextBlock doesn't use fast path (i.e, when it has non-null
_inlines
)Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: