[Webkit-unassigned] [Bug 90838] New: constructing TypedArray from another TypedArray is slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 9 17:18:26 PDT 2012


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

           Summary: constructing TypedArray from another TypedArray is
                    slow
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptGlue
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arno at renevier.net


Hi,
we can construct a TypedArray by passing another TypedArray. In that case, the value of the buffer is converted to the new type, and is copied to the new buffer.

This operation is quite slow (at least compared to mozilla). Each value is read as a JSValue from typed array as a JSObject, and then converted to a number.

May be we can detect if the constructor argument is a typed array, and get each value directly with array.item(idx);

-- 
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