Avoid uncessary CodeMirror updates
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox119 fixed)
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Bug 1775200 started avoiding a few CodeMirror updates, but we still have a few superfluous ones.
Some of these unecessary updates relate to bug 1853123.
But there is also some uncessary changes related to selectedSourceTextContent attribute which changes between undefined, promise with null value and promise with an actual value.
Assignee | ||
Comment 1•1 year ago
|
||
We were trying to update CodeMirror text and scroll position too frequently.
These calls can be expensive on large documents.
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
For some reason, the previous changeset triggers an additional call to scrollToColumn
during open-large-minified-file
DAMP test, only on try but not locally.
Calling codeMirror.charCoords
can be slow on large files and we often
try to scroll to the first line/first column. Let's arbitrarily scroll
to top/left when this simple case happens.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/14272e0686b3
https://hg.mozilla.org/mozilla-central/rev/0fad6751508b
Description
•