Which is faster: neq '' or len(#v#)?

2000-04-18 Thread Tom Sammons

I know we've determined that cfif not varname is faster than cfif varname is not 
0, etc.,
but is cfif varname is not '' slower than cfif len(varname)?

Tom

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Which is faster: neq '' or len(#v#)?

2000-04-18 Thread lsellers



 I know we've determined that cfif not varname is faster than
 cfif varname is not 0, etc.,
 but is cfif varname is not '' slower than cfif len(varname)?

Logically the first should be faster. It only has to do a string compare of
1 character. The len function has to compare for the full length of the
string until it reachs a null.

--min

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.