R
Roedy Green
Now my question is: does it matter that I declare tupleWithSecond
outside the loop? I have the impression that if I leave the first line
out and instead add ?FunctionInputTuple? before the third line, that a
new pointer space is created on the stack for each loop.
all slots on the stack frame for locals are allocated by a single
addition(subtraction) of the stack pointer on entering the method.
The advantage of putting them inside:
1. helps an optimiser. It know they can't be used in any way outside
the loop so it does not need to worry about saving them in ram in
case you jump out the loop.
2. helps others understand your code.