- In Javascript I can represent a 2D point (1,2) either as an object
{x:1, y:2}or as an array[1,2]. Is the last one significantly better when it comes to performance? - If at some point of my program I decide to add a property to a point
v(such asv.next = u) andvis represented as an array, will I loose that [*] performance gain?
[*] assuming the answer to 1 is YES.