4 ms·
What about loop variables?
Want to re-allocate them at each step?
What about loop variables?
Want to re-allocate them at each step?
Yes, please!
Signed,
foldl
I make variables inside loops final. The compiler should automatically handle that and avoid unnecessary re-allocation.
Chances are a few (or probably even a lot of) temporary references aren't going to be that big a deal.