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 reply to Re: Ref to hash entries are faster?
by fenLisesi
in thread Ref to hash entries are faster?
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |