Browse Source
* perf(text): test the selection by index instead of building it UpdateCommandStates only needs to know whether the selection is empty, but it called GetSelection, which allocates a substring on every selection change. Test the indices instead, so a selection change no longer allocates. Requested by @Gillibald in #21492. * perf(text): read the selection properties once in HasSelectionpull/22115/head
committed by
GitHub
3 changed files with 87 additions and 6 deletions
Loading…
Reference in new issue