[Webkit-unassigned] [Bug 236124] New: cache the result of JSString::toIdentifier

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 3 21:05:03 PST 2022


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

            Bug ID: 236124
           Summary: cache the result of JSString::toIdentifier
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com

JSString::toIdentifier does not store the result of atomizing its string value, except when it is a rope.  We can often end up atomizing the same JSString a number of times.

Forthcoming patch caches the last atomized string produced from JSString::toIdentifier in a given VM.  From local testing, this is a 0.5% Speedometer2 improvement on an M1 MacBook Air, although surprisingly is neutral on a recent Intel MacBook Pro.

-- 
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/20220204/9441dfac/attachment-0001.htm>


More information about the webkit-unassigned mailing list