You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text drawing allocates highlighter and decoration collections on every recording #25412
UnicodeText.Draw should only allocate its per-recording collections when they are needed. Today every text recording allocates them, whether or not the text uses them:
a highlighter RangeSlicer, whose segment list is all most text uses
empty collections for text decorations, decoration lines, spell-check underlines and composition underlines
Why is this needed? 🤔
Text is re-recorded as items scroll into view and whenever a TextBlock is invalidated. On a 1,000-tile GridView, these allocations are a measurable share of the per-frame allocations during scrolling.
For which platforms 📱💻🖥️
Skia (all heads)
Anything else we need to know? 💬
Found while profiling GridView scrolling for #25389.
Activity