Found a very interesting situation, node.js 6.11.0, Win 10. After running this code
function rand() {return Math.floor(Math.random()*10);}
let s = new Array(10000000).fill(0).map(a => new Float64Array([rand(), rand()]));
and calling global.gc() few times, the node.js environment was taking 1,7GB of space. I have no explanation of this - Float64Array of two numbers is taking 16bytes, times 10000000 is ~160MB. Even if you assume that each element of array s is actually a pointer to Float64Array, which is another 8 bytes, it makes 240MB, but not 1,7GB for sure.
What could be the explanation to this?
