No, we don't have direct control over elements kinds, but we can write code that allows V8 to use the most efficient kind for the particular data set. Mathias Bynens described this and other performance tips in the corresponding V8 blog post:

In my opinion, it doesn't make a lot of sense to try to apply all of the tips to all of your code. But for performance-critical parts (the hop path) they're certainly valuable.

Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store