Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: elsif chain vs. dispatch

by JavaFan (Canon)
on Apr 27, 2009 at 07:52 UTC ( #760302=note: print w/ replies, xml ) Need Help??

in reply to elsif chain vs. dispatch

You are not comparing looking up by iteration and looking up something in a hash. You are comparing looking up by iteration vs. building a hash, finding something in the hash, then doing a sub call. On top of that, you're calling split on a large string to make it even harder to draw any conclusions.

But even if you fix all those issues, the still you can only draw conclusions if you have a large number of cases, and each case is picked equally well. Typically, one dispatches between far less cases, and not every case occurs equally often.

Comment on Re: elsif chain vs. dispatch

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2016-05-28 09:45 GMT
Find Nodes?
    Voting Booth?