Clearing innerHTML of the outputNode element can be slow
Categories
(DevTools :: Console, task, P3)
Tracking
(Not tracked)
People
(Reporter: ochameau, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Comment 4•3 years ago
|
||
Using element.remove()
, .textContent = ""
or simply removing the line don't have any positive impact.
Bug 1753177 might help here.
Doug could you share a profile closing a console that holds 10000 items, with your WIP patch for virtualization? I want to see if we can let this aside for now if this is going to be made better by virtualization.
Comment 5•3 years ago
|
||
Profile with virtualized list: https://share.firefox.dev/34ER0vq
Profile without: https://share.firefox.dev/34wGPJ5
We still take a little bit of time destroying it, but it's less than a frame, so I'm fine with saying bug 1753177 will close this.
Comment 6•3 years ago
|
||
That's great to hear. I'm making this bug depends on Bug 1753177 so we can assert that things are okay once we have virtualization.
Comment 7•3 years ago
|
||
Looking at DAMP results , closing the console with a lot of messages (custom.webconsole.close.DAMP
), got 90% faster with Bug 1753177 🎉
Let's close this
Description
•