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: https://v8.dev/blog/elements-kinds#performance-tips

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.

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