Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: When should I use a dispatch table?

by Anonymous Monk
on Dec 01, 2006 at 15:17 UTC ( #587208=note: print w/replies, xml ) Need Help??

in reply to When should I use a dispatch table?

I will not bother to find out where the break-even point on my system lies. As chromatic says, the milliseconds saved are unimportant. If they would be important, I would neither use a Perl if-else chain, nor a Perl dispatch table. Instead, I'd write a piece of C code (which could be an if/else chain, a switch or a dispatch table).

Luckely for me, most of the time, the milliseconds are not important, and I can use both Perl, and whatever technique I find more readable/maintainable.

  • Comment on Re: When should I use a dispatch table?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587208]
[LanX]: I'm not calling for shooting Trump with a golf ball ;-)
[LanX]: this bullshit theater is distracting us from real issues
[choroba]: he will resign
LanX "I put lipstick on a pig,"
[erix]: it does seem to get out of hand -- but then again, it looks like that for months already :)
[LanX]: the bets are rather who will leave office first Trump or May

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-08-18 13:04 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (301 votes). Check out past polls.