3 ms·
Compared to a compiled language, node / JIT langs make it difficult to know what will be fast in prod. V8 JIT means that things like order of keys in an object
by awinter-py 7y ago
Compared to a compiled language, node / JIT langs make it difficult to know what will be fast in prod.
V8 JIT means that things like order of keys in an object or number of different calls to a function might affect whether your function gets optimized.
And there's no easy way to find out if a JS function is falling back to slow mode or to tell the buildsystem 'this is a hot path, don't let me write code that deopts this call'.