[Webkit-unassigned] [Bug 197015] New: [JSC] Optimize cases of Array.prototype.join/toString on huge empty arrays which result into one-character repeats

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 17 09:30:22 PDT 2019


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

            Bug ID: 197015
           Summary: [JSC] Optimize cases of Array.prototype.join/toString
                    on huge empty arrays which result into one-character
                    repeats
           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: bandou.yacine at gmail.com
                CC: olivier.blin at softathome.com

Add a fast case in Array.prototype.join when the array is empty and it uses array_storage indexingType and the separator length is less than 2.

Use the same optimisation that is used in the case of UNDECIDED indexingType, in order allocate the final string in one step, instead of
appending in a loop which consumes additional temporary memory.

-- 
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/20190417/2c9cebf1/attachment.html>


More information about the webkit-unassigned mailing list