Skip to content

Preallocation for array-map

Latest
Compare
Choose a tag to compare
@vzhou842 vzhou842 released this 25 Apr 03:47
· 8 commits to master since this release

Results arrays for the array-map optimization are now preallocated using new Array(arr.length). Compare performance with/without preallocation by running node bench/array-map-preallocation.js.