3 ms·
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)
by arcatek 12y ago
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.