DEV Community

Discussion on: 🚀⚙️ JavaScript Visualized: the JavaScript Engine

Collapse
 
jose31canizar profile image
José Daniel Cañizares

In reference to your inline caching example, if you had a function that was called every other time with different data types (“sum” could be called with numbers, then strings, then numbers again repeatedly), wouldn’t the performance of having to update the type feedback be nullified? If so, how is this handled in the V8 engine? Thanks!