RESOLVED FIXED Bug 90174
Optimize Dromaeo/dom-attr.html by speeding up Element::getAttribute()
https://bugs.webkit.org/show_bug.cgi?id=90174
Summary Optimize Dromaeo/dom-attr.html by speeding up Element::getAttribute()
Kentaro Hara
Reported 2012-06-28 06:48:52 PDT
By changing the type of 'name' of Element::getAttribute(String& name) from String to AtomicString, we can improve the performance of Element::getAttribute(). This optimization is based on the observation that AtomicString(String&) is faster than operatior==(String&, AtomicString&). More detailed explanation will be appeared in ChangeLog.
Attachments
Patch (10.44 KB, patch)
2012-06-28 06:57 PDT, Kentaro Hara
no flags
Patch (10.70 KB, patch)
2012-06-28 07:00 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-06-28 06:57:23 PDT
Kentaro Hara
Comment 2 2012-06-28 07:00:40 PDT
Adam Barth
Comment 3 2012-06-28 08:24:12 PDT
Comment on attachment 149945 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149945&action=review > Source/WebCore/dom/Element.h:146 > const AtomicString& getAttributeNS(const String& namespaceURI, const String& localName) const; Should we do the same for getAttributeNS?
Kentaro Hara
Comment 4 2012-06-28 08:30:48 PDT
(In reply to comment #3) > > Source/WebCore/dom/Element.h:146 > > const AtomicString& getAttributeNS(const String& namespaceURI, const String& localName) const; > > Should we do the same for getAttributeNS? Let me do it in a follow-up patch. getAttributeNode() would be another place.
WebKit Review Bot
Comment 5 2012-06-28 10:07:22 PDT
Comment on attachment 149945 [details] Patch Clearing flags on attachment: 149945 Committed r121439: <http://trac.webkit.org/changeset/121439>
WebKit Review Bot
Comment 6 2012-06-28 10:07:31 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.