3 ms·
Why put it into a separate function? You could just movie it to the end and jump there and back,saving the call overhead.
by repsilat 12y ago
Why put it into a separate function? You could just movie it to the end and jump there and back,saving the call overhead.
- Rusky 12y agoIt makes the function smaller, making it easier to inline. This might matter depending on how easy it is for the compiler to do partial inlining.
- DannyBee 12y agoCall overhead would be nil, since it created the function, and thus it does not have to follow normal argument passing behavior :) In effect, it will just be a bunch of gotos.