| ▲ | mr_toad 7 hours ago | |||||||
> I'd be curious to see what the results would be if they repeated the "array of objects" benchmark with an "array of arrays" Arrays are objects, so I’d be surprised if it made much difference. | ||||||||
| ▲ | saghm 5 hours ago | parent [-] | |||||||
Much of a difference from which, the array of objects or an object containing arrays? The article points out at least one major optimization that the runtime performs on arrays that doesn't (and as I understand it, can't) exist for objects. My point is that it's not obvious whether there are others, and if so, where they might apply. Pretty much the entire last paragraph of my comment that you responded to is an argument that it's potentially wrong to just naively assume "arrays are just objects". It's not clear to me why you're confident that this is wrong without giving any additional context that clarifies whether you've actually considered that possibility or not. | ||||||||
| ||||||||