[Webkit-unassigned] [Bug 252790] New: Produce 8 bit function toString() strings when possible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 22 18:25:32 PST 2023


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

            Bug ID: 252790
           Summary: Produce 8 bit function toString() strings when
                    possible
           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

Some pages call Function.prototype.toString() on a function whose resulting string contains only 8 bit characters, but results in a 16 bit WTF::String due to the script source being stored in a 16 bit string.  This can end up wasting memory.  Let's see if perf allows us to check these strings' content and create an 8 bit string if possible.

-- 
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/20230223/6388a575/attachment-0001.htm>


More information about the webkit-unassigned mailing list