[Webkit-unassigned] [Bug 52561] Changing innerHTML gets progressively slower, spinning in updateStyleSelector()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 24 23:01:29 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=52561


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |NeedsReduction




--- Comment #9 from Alexey Proskuryakov <ap at webkit.org>  2011-01-24 23:01:28 PST ---
The main cause of bad performance is that the script leaks <link> elements. If you open the test page and enter the following in address bar, you can see that the number of stylesheets grows, quickly reaching hundreds:

javascript:alert(document.getElementsByTagName("link").length)

And with this, you can see the current DOM:

javascript:alert((new XMLSerializer).serializeToString(document.documentElement))

It would be good to create a small test case to see what exactly is slow in WebKit - Firefox also shows the growth, but it doesn't get so slow. I suspect that it's an edge case though, and unfortunately I don't have more time to work on this now.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list