Improve performance of inner/outerHTML getters.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
One thing that stands out of the profiles in bug 1827132 are a ton of string allocations and attribute lookups.
Those seem optimizable rather easily, unless I'm missing something.
Assignee | ||
Comment 1•2 years ago
|
||
One thing that stands out of the profiles in bug 1827132 are a ton of
allocations and attribute lookups.
While the root cause of that performance issue is likely to be a
DOMSubtreeModified event that Chrome doesn't fire or so, those are
rather easy to optimize and might be more generally useful.
I removed handling of <br type="">
, because editor no longer uses it.
Maybe we can also remove some of the other of the prefixed attribute
shenanigans.
Assignee | ||
Comment 2•2 years ago
|
||
I think nodes that use these are really native-anonymous largely. So
this should be fine, but try is acting up today so if there's any test
failure we can re-evaluate / move to a separate bug as needed.
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D176957
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D177000
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c2edf3ce20ce
https://hg.mozilla.org/mozilla-central/rev/2319731dcff2
https://hg.mozilla.org/mozilla-central/rev/f56cd69dbabd
https://hg.mozilla.org/mozilla-central/rev/7820ebaff373
Description
•