[Webkit-unassigned] [Bug 279862] New: [JSC] Add fast path for `array.concat()`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 17 20:30:50 PDT 2024


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

            Bug ID: 279862
           Summary: [JSC] Add fast path for `array.concat()`
           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: aosukeke at gmail.com

This patch adds fast path for `array.concat()` using same way as `Array.from(array)` and
    `Iterator#toArray.call(array)`.

    According to microbench it is 1.5~6x faster.

                                                TipOfTree                  Patched

    array-prototype-concat-copy-obj           1.5511+-0.0177     ^      0.9972+-0.0240        ^ definitely 1.5555x faster
    array-prototype-concat-copy-double        1.5206+-0.0444     ^      0.9512+-0.0144        ^ definitely 1.5986x faster
    array-prototype-concat-copy-int32         1.5138+-0.0141     ^      0.9637+-0.0457        ^ definitely 1.5707x faster

    <geometric>                               1.5284+-0.0205     ^      0.9704+-0.0137        ^ definitely 1.5750x faster

    Other benchmarks of Arrray.prototype.concat show no performance regressions.

-- 
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/20240918/67b6402e/attachment-0001.htm>


More information about the webkit-unassigned mailing list