in reply to Re^4: "exists $hash{key}" is slower than "$hash{key}"
in thread "exists $hash{key}" is slower than "$hash{key}"
The point of the exercise is not to access lexical variables. They are used only so something happens in case that code will otherwise be optimised away (I don't know the internals well enough to be sure). I should have been clearer about this in my original post.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: "exists $hash{key}" is slower than "$hash{key}"
by tobyink (Canon) on Jan 07, 2020 at 08:30 UTC | |
by swl (Prior) on Jan 08, 2020 at 23:52 UTC | |
|
Re^6: "exists $hash{key}" is slower than "$hash{key}"
by LanX (Saint) on Jan 07, 2020 at 13:37 UTC | |
by swl (Prior) on Jan 08, 2020 at 23:50 UTC |