I prefer not len(var) approach for readability reasons. I am re-writing a
lot of code from previous programmers who were supposed to be more
experienced CF progammers than I am. So, if there is any particular reason
not to use my approach, I'd like to know.
-----Original Message-----
From: James Sleeman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 01, 2000 8:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Which is faster?
---Reply to mail from stas about Which is faster?
> Is
>
> <cfif not len(trim(newpassword))>
>
> faster than:
>
> <cfif trim(newpassword) is "">
Why would you care ? The dfference would be negligble and looks like
the code would be rarely used (when somebody changes a password by the
look) so it would make nothing above an infintessimal difference.
Try it out experimentally if you really want to know (do a couple thousand
executions of each command in a loop (using the same set of passwords for
each) and
see what the difference is (with timing reports turned on in the
CFAdministrator)).
----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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.