Inlining JavaScript function calls speeds up the execution and also reduces the code size after gzipping, as described in this article:
http://blog.calyptus.eu/seb/2011/01/javascript-call-performance-just-inline-it/
However, I can’t find a tool which automatically processes a JS source file and inlines all (or better, selected) inlinable function calls in it. Google’s Closure Compiler does some inlining, but not always, and nor is it configurable.
Thanks in advance!
Let the JIT figure things like inlining out fr you. Inlining can easily worsen the performance by killing cache performance.
Also, unless you have identified the actual bottlenecks, doing premature optimization like this is hardly ever worth it.