> Chrome’s v8 at least bails out its JIT process if a function is either too big, or if it has too many entries in the switch statement.
Is this true? Anyone have some sense of why?
Is this true? Anyone have some sense of why?
I recently saw this in Petka Antonov's "Optimization Killers"[1], though I've definitely seen it somewhere else as well, because I recall hearing that variables mixed with literals in a switch could trip up the optimizer.
[1] https://github.com/petkaantonov/bluebird/wiki/Optimization-k...