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