Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://760302]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2018-05-25 19:20 GMT
Find Nodes?
    Voting Booth?