--

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.

--

--

Andrey Pechkurov
Andrey Pechkurov

Written by Andrey Pechkurov

Core database engineer at QuestDB. Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

No responses yet