Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-07-19 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (411 votes). Check out past polls.

    Notices?