No such thing as a small change | |
PerlMonks |
Re^3: "exists $hash{key}" is slower than "$hash{key}"by LanX (Saint) |
on Jan 06, 2020 at 01:18 UTC ( [id://11111020]=note: print w/replies, xml ) | Need Help?? |
> If this is the case then it seems counter intuitive at first glance, and maybe is something that could be modified. Well - "if this is the case" - it's most probably for "historical reasons". I could imagine exists came later and that was the easiest way to implement it, and the pay off for any redesign is too small. You shouldn't forget that there is much more going on in the background which would need to be replicated, like autovivification and so on. > One advantage of using exists I'm not sure I can follow.
Cheers Rolf
In Section
Meditations
|
|