You should have just seen how the compiler works. There are examples on the side.
For example: an {a,b} struct is compiled down to a [a,b] array in JS. (by the compiler).
This is an optimization. V8 can only optimize the code that it is given (and sometimes, deoptimize). The better your code is, the more easier V8 can optimize it.
For example: an {a,b} struct is compiled down to a [a,b] array in JS. (by the compiler).
This is an optimization. V8 can only optimize the code that it is given (and sometimes, deoptimize). The better your code is, the more easier V8 can optimize it.