good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: How to access a static hash.by gam3 (Curate) |
on Mar 18, 2007 at 16:49 UTC ( [id://605369]=note: print w/replies, xml ) | Need Help?? |
What you did not test is the global hash:
Rate anonhash globalhash ternary anonhash 32323/s -- -59% -63% globalhash 79642/s 146% -- -8% ternary 86652/s 168% 9% --With only a few more entries the global hash would be faster. However you have to name each of these global hashes (and I am bad with names).
-- gam3 A picture is worth a thousand words, but takes 200K.
In Section
Seekers of Perl Wisdom
|
|