DEV Community

Discussion on: Node.js Under The Hood #5 - Hidden Classes & Variable Allocations

Collapse
anshulnegitc profile image
Anshul Negi

Doesn't dynamic typed affect the performance of an application, as it has to hop many times, to access the last variable in our case "y"?

Collapse
stavalfi profile image
Stav Alfi

from the picture in the article:
answer- no.
reason - the object will always point to the newest hidden-class; which will contain x and y :P