in reply to Faster Hash Slices

Answer the questions the others asked. The best solution depends on the use case. I think what you want is an AoA with numeric constants instead of hash keys.

Replies are listed 'Best First'.
Re^2: Faster Hash Slices
by jht (Novice) on Nov 29, 2013 at 02:53 UTC
    I agree that an array with constants should be faster, however, it would require more changes to the existing code than I'm up for at the moment. Moving the hash creation and key allocation out of the loop as suggested by hdb has helped. I will try the array method when I get a chance. Thanks!