News for hackers. Stuff that matters.
Re:How JavaScript works: inside the V8 engine by nopenopenope8 on Monday August 21, 2017 @01:52PM (#15066256)
This is incorrect. Arrays are implemented as a type of object, but you shouldn't worry about that. Hashmaps and arrays both have ~O(1) random indexing. If you need an array, don't use an object.
Re:How JavaScript works: inside the V8 engine by inglor on Monday August 21, 2017 @02:07PM (#15066375)
Objects have a length overhead. At Bluebird we used objects and used a bitmask on the length so it's fast. (We use less slots than an array actually)

I was just pointing out that Objects weren't slow for indexed access.