Re:V8 Optimization Killers
by binarymax on Wednesday June 25, 2014 @09:26AM
(#7943713)
I understand that use case, but in my opinion it would be much cleaner (and speculating faster) to have an 256-slot array...and routing with opcodes[byte.charCodeAt(0)](); or something similar.
[ Parent
| on HN ]
Function calls are expensive if they are not optimized. However, the same is true for switch/case trees, and even for JIT'd code (dynamically created functions) ...
In the Javascript world, "Your Mileage May Vary" truly is a motto.