[Webkit-unassigned] [Bug 236570] New: Cache an entire attribute QualifiedName when parsing HTML, not just its local name AtomString

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 13 13:31:51 PST 2022


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

            Bug ID: 236570
           Summary: Cache an entire attribute QualifiedName when parsing
                    HTML, not just its local name AtomString
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com
                CC: webkit-bug-importer at group.apple.com

Bug 229907 added HTMLAtomStringCache, which uses a fast to compute hash that works well to cache HTML tag names, attribute names, and attribute value.  When AtomHTMLToken initializes its list of Attributes, it uses HTMLAtomStringCache to look up or create an AtomString for the attribute's local name, and then creates a QualifiedName to wrap it.  QualifiedName construction involves looking up QualifiedNameCache, which is a thread-specific cache of QualifiedNameImpl objects.  If we make HTMLAtomStringCache responsible for caching an attribute's QualifiedName instead of just its local name AtomString, we can avoid the work of looking up the QualifiedNameCache.

Doing this results in a 0.2-0.3% improvement on Speedometer 2, and a 0.3-0.4% improvement on PLT5.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220213/384214b4/attachment-0001.htm>


More information about the webkit-unassigned mailing list