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.
Created attachment 149944 [details] Patch
Created attachment 149945 [details] Patch
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?
(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.
Comment on attachment 149945 [details] Patch Clearing flags on attachment: 149945 Committed r121439: <http://trac.webkit.org/changeset/121439>
All reviewed patches have been landed. Closing bug.