[Webkit-unassigned] [Bug 98982] Setting className attribute causes slow performance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 5 14:38:37 PDT 2013


--- Comment #12 from Brad Vogel <bradavogel at gmail.com>  2013-04-05 14:36:50 PST ---
Created an attachment (id=196683)
 --> (https://bugs.webkit.org/attachment.cgi?id=196683&action=review)
New test case with className += ' '

> The case that Brad is talking about is changing the class attribute but not in a way that impacts style resolution.

Yes, that's correct. I added a new test case with the `className += ' '` example. My results from the console in Version 28.0.1466.0 canary:
    with setting className in a way that does not affect styles: 227.365ms
    without setting className: 9.272ms

I'd expect the "with setting className" performance to be much closer to "without setting className" since it's not changing styles or requiring a relayout.

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