Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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 browsing the Monastery: (5)
As of 2015-11-28 13:53 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (742 votes), past polls