in reply to Re: Why are hashes so much faster?
in thread Why are hashes so much faster?
> My guess is that you were having to do some traversing
> of the array to look for a certain value
Yes, it was a case of<KBD> if ( $_ eq 'whatever' ) </KBD>while looping through the array.
I thought perhaps it'd be faster via "grep" (don't know why I thought so)--
it wasn't. The solution via hash was stunningly faster.
Thanks for these replies. I don't get all of it yet, but slowly, slowly...
|
|---|