http://qs321.pair.com?node_id=11114867


in reply to declaring lexical variables in shortest scope: performance?

In C/C++ the equivalent outer/inner code would perform identically. The compiler allocates space for all the local variables that might be needed on the stack on entry to the sub, usually by effectively incrementing the stack pointer. The "overhead" to create space for the local variables is typically the execution time of one processor instruction on each entry to the sub.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond