Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Trinary or If'n'Else?

by nop (Hermit)
on Dec 22, 2000 at 18:49 UTC ( #48040=note: print w/replies, xml ) Need Help??


in reply to Trinary or If'n'Else?

To make your code faster, closely examine your algorithm and logic. Profile where your code is spending its time.

Improvements here can are thousand-fold more important than the minor speed issues of ? vs. if-then-else.

My two cents.

nop

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48040]
help
Chatterbox?
[erix]: heh

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-04-25 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?