Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Ref to hash entries are faster?by fenLisesi (Priest) |
on Nov 30, 2006 at 08:05 UTC ( [id://586896]=note: print w/replies, xml ) | Need Help?? |
I was going to say:
If STATE, START etc are implemented as subs, the choice of an array at that level could be expensive. How about a hash there, too, as in $Contract_href->{STATE}? (I have not benchmarked this, just a guess).but then I did run a (perhaps flawed) benchmark and the array with use constant seems to win.
In Section
Seekers of Perl Wisdom
|
|