Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: Re: Why are hashes so much faster?

by Anonymous Monk
on Jun 18, 2000 at 04:19 UTC ( [id://18689]=note: print w/replies, xml ) Need Help??


in reply to Re: Why are hashes so much faster?
in thread Why are hashes so much faster?

(I'm the one who posted the question...I can't get my logins here
to "take," and everything I post ends up under the name
"Anonymous Monk" whether I log in or not. Sigh...)

> 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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://18689]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found