in reply to Re: "my" cost
in thread "my" cost

Doesn't seem like a long time, but I've always been curious about this. I suppose in some scenarios it could be beneficial to declare the my variable outside the loop.

Replies are listed 'Best First'.
Re^3: "my" cost
by ikegami (Patriarch) on Aug 18, 2024 at 03:01 UTC

    I can't imagine any. If you're so desperate that 7 ns per loop pass matters to you, moving a my isn't the solution you need.