Actually 'NOT Len(variable)' would theoretically run faster than
Len(variable) EQ 0 ... Here's another tip for you. Cold Fusion can handle
any integer as a Boolean value (see the IsBoolean function) with any non
zero integer being true, and any zeros being false. So by using the NOT
operator you can evaluate the result of the Len() function as a Boolean,
because in this case you don't care what the Length of the string is, as
long as it isn't zero. If you wanted to test if a string isn't empty (a
True return, or non zero return, of the Len() function) then you can just
say...
<cfif Len(variable)>
There are a couple resources out there...
Some white papers by Allaire...
http://www2.allaire.com/Handlers/index.cfm?ID=1576&Method=Full
http://www2.allaire.com/Handlers/index.cfm?ID=12970&Method=Full
http://www2.allaire.com/Handlers/index.cfm?ID=8627&Method=Full
Always Some useful stuff on Fusion Authority...
http://www.fusionauthority.com
We also have some resources on CFDEV.COM
http://www.cfdev.com/resources/
I would love to make a definitive list of this stuff, We would be happy to
host it on CFDEV.COM if anyone is interested in helping me compile a list
email me off-list [EMAIL PROTECTED]
____________________________________________________
Pete Freitag
CFDEV.COM
Cold Fusion Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: Ian [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 9:53 AM
To: [EMAIL PROTECTED]
Subject: Ways to improve performance?
Every now and then someone posts code and explains that such-and-such runs
faster than something else because -----. Is there a list of all of these
ways to improve code performance?
I know about using CFLOOP instead of looping through CFSCRIPT and that
Len(variable) EQ 0 is faster than variable EQ "".
Thanks.
Ian
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.