• karl's avatar
    [es6] Optimize TypedArray.subarray() · 1e2aecf3
    karl authored
    ````
    var array = new Uint8Array(65000);
    var startDate = Date.now();
    var counter = 0;
    while (counter++ < 50000000) {
      array.subarray(start, end);
    }
    var endDate = Date.now();
    print(endDate - startDate);
    ````
    
    4200 ms -> 3500 ms (16.67%)
    
    BUG=
    
    Review URL: https://codereview.chromium.org/1331993004
    
    Cr-Commit-Position: refs/heads/master@{#30770}
    1e2aecf3
typedarray.js 16 KB