[Webkit-unassigned] [Bug 147268] New: Avoid 2 times name iteration in Object.assign

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 24 11:12:23 PDT 2015


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

            Bug ID: 147268
           Summary: Avoid 2 times name iteration in Object.assign
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Object.assign calls Object.getOwnPropertyNames & Object.getOwnPropertySymbols to collect all the names.
But exposing the private API that collects both at the same time makes the API efficient when the given Object has so many non-indexed properties.
Since Object.assign is so generic API (some form of utility API), the form of the given Object is not expected.
This is why I think this optimization is required.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150724/1d7123fe/attachment.html>


More information about the webkit-unassigned mailing list