Switching from a hashref to a hash may slightly improve matters. Accesses to hash elements are slightly faster going direct. Better still would be to abandon the hash altogether and access @aa directly, because array accesses are faster than hash ones, but this change might not be as simple.
In reply to Re: Faster Hash Slices
by tobyink
in thread Faster Hash Slices
by jht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |