in reply to Re^2: declaring lexical variables in shortest scope: performance?
in thread declaring lexical variables in shortest scope: performance?
Do you mean you added the my $z=12; to both the subroutines and the lexical one became 50% slower? I can't reproduce that behaviour. Adding it to only one of the subs slows it (35% in my case), but then we are comparing apples and oranges.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: declaring lexical variables in shortest scope: performance?
by bliako (Abbot) on Mar 31, 2020 at 11:58 UTC | |
by LanX (Saint) on Mar 31, 2020 at 12:00 UTC | |
by bliako (Abbot) on Mar 31, 2020 at 12:14 UTC | |
by LanX (Saint) on Mar 31, 2020 at 12:31 UTC | |
by bliako (Abbot) on Mar 31, 2020 at 12:41 UTC | |
|