Closed
Bug 1435931
Opened 7 years ago
Closed 6 years ago
Scrolling performance on github really bad when text selected
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
DUPLICATE
of bug 1464632
People
(Reporter: jrmuizel, Unassigned)
References
Details
Scrolling this page https://github.com/trizinix/afm-rs/blob/master/src/lib.rs with text selected gives profiles like: https://perfht.ml/2E710v9 and https://perfht.ml/2E3zGxW
84% of the time is being spent in nsIFrame::IsSelected()
Reporter | ||
Comment 1•7 years ago
|
||
See also bug 1374338
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Comment 3•6 years ago
|
||
Alexis, do you recall what the conclusion about text selection on github was?
Flags: needinfo?(a.beingessner)
Comment 4•6 years ago
|
||
The issue seems to be that an array-backed cache was removed from a linked-list data structure for maintenance/perf reasons elsewhere, but this part of the code does binary search on that list. This erratic access pattern also breaks any attempt to do locality-based caching of the list. I'll inquire into what we can do about it.
Flags: needinfo?(a.beingessner)
Comment 5•6 years ago
|
||
see also bug 1464632 (which could be a dupe). It has some discussion from the layout people
Comment 6•6 years ago
|
||
this is fixed by bug 1464632
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•