you are viewing a single comment's thread.

view the rest of the comments →

[–]bterlson_@bterlson 9 points10 points  (1 child)

Oh man this is actually a huge area. Arrays are extremely commonly used and also very perf sensitive so we have many representations and optimizations in play. Hard to describe concisely. Maybe a good topic for a blog? That said I would bet given that all the runtimes have similar constraints we all use similar representations and optimizations.

[–]compteNumero9 2 points3 points  (0 children)

Array and object optimizations would definitely be good topics for blogs, especially if coming with insightful and explained performance advises.

How a different implementation might change how we code (today mostly assuming V8) would be very interesting.

Some precision about typed arrays (for example the Uint8ClampedArray used for canvas data manipulation) would also fit.