[Webkit-unassigned] [Bug 98982] New: Setting className attribute causes slow performance
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 10 20:06:20 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=98982
Summary: Setting className attribute causes slow performance
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bradavogel at gmail.com
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14
Steps to reproduce the problem:
1. Run the attached test case.
2. View the console.
In the console you'll see:
with setting className: 342.205ms
without setting className: 1.680ms
What went wrong?
Setting the className to it same value should be a no-op. However, webkit sets the node as dirty even though the className is the same. It would be a nice performance enhancement if webkit compared the new value to the old value before setting the dirty flag to re-render the node.
--
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