09 January 2007

Use Local Variables Whenever Possible

Arguments that are part of the method call and temporary
variables that are declared a part of this call are stored on the
stack, which is fast.
Variables such as static, instance, and new
objects are created on the heap, which is slower.

If you need high performance with the function you use
then do not try to call it from heap take it from the stack via localizing it..

And furthermore local variables are optimized also with the virtual machine that you are using

No comments: