Typing in Phabricator textarea on long pages is super slow
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
People
(Reporter: nchevobbe, Assigned: mattwoodrow)
Details
Attachments
(3 files)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
Steps to reproduce
- Go to https://phabricator.services.mozilla.com/D24930
- Scroll all the way to the bottom to access the text box
- Focus the input and type a letter
Results
It takes more than 10s for the typed letter to appear in the text box.
Here's a profile of typing a single letter in there: http://bit.ly/2HTsn0p
Filing on Graphics as it looks like this is the culprit here.
Comment 1•6 years ago
|
||
Seems to be more of a DisplayList-building issue around painting backgrounds, with a huge amount of time going into nsBlockInFlowLineIterator::nsBlockInFlowLineIterator. Moving to Web Painting.
(FWIW, just the initial rendering and scrolling to the bottom of that page takes "forever" (almost) here, this isn't specifically about typing.)
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Without this the restore doesn't have any effect as the next frame sees that coord has mIsValid=false
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D26648
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D26649
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e8b188fd600d
https://hg.mozilla.org/mozilla-central/rev/d32769ee5991
https://hg.mozilla.org/mozilla-central/rev/9d54e34f7f66
Comment 7•6 years ago
|
||
Is this worth an uplift to beta (and safe enough)?
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 9056790 [details]
Bug 1539366 - Avoid calling AreOnSameLine once we know we've already changed lines since it can be expensive to compute. r?mats
Beta/Release Uplift Approval Request
- User impact if declined: Slow display list building on some inline heavy pages, include Phabricator.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Fairly simple performance optimization, just fixes cases where the existing cache wasn't being hit.
- String changes made/needed: None
Assignee | ||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Comment on attachment 9056788 [details]
Bug 1539366 - Use SetCoord to restore mPIStartBorderData's coord so that it also set mValid. r?mats
painting perf fixes, approved for 68.0b8
Updated•6 years ago
|
Updated•6 years ago
|
![]() |
||
Comment 10•6 years ago
|
||
bugherder uplift |
Description
•