[Webkit-unassigned] [Bug 131462] New: Spread operator performance in pure array concatenation should be closer to Array.prototype.concat

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 9 15:49:27 PDT 2014


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

           Summary: Spread operator performance in pure array
                    concatenation should be closer to
                    Array.prototype.concat
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: oliver at apple.com


Created an attachment (id=228995)
 --> (https://bugs.webkit.org/attachment.cgi?id=228995&action=review)
[TEST] Test Case

Comparing the performance of:

    var combined = [...arr1, ...arr2];
    var combined = arr1.concat(arr2);

The concat is faster then the spread. They should be closer in performance considering they produce the same result.

See attached test case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list