On this simple example, you win more than 50% of the processing time. Under load, you'll be able to support 50% more users...
The question is not to know if one user will notice it or not. The question is to get the best response time under load. It depends on your application. If it is for a small intranet with 10 concurrent users, it won't be necessary. If it is a B2C web site with 1000 concurrent users, it would be recommanded to try to optimize the performance... you'll save a lot of money (hosting and licenses). Benoit -----Message d'origine----- De : Jon Hall [mailto:[EMAIL PROTECTED]] Envoy� : vendredi 16 ao�t 2002 10:53 � : CF-Talk Objet : Re: Best Practices So one iteration of the former executes in .811 milliseconds and the latter .37 milliseconds? No one is ever going to notice that. What someone who comes from any other language under the sun will notice though, is that len() returns an int and not a boolean. So why would someone be doing a boolean test on it? -- jon mailto:[EMAIL PROTECTED] Friday, August 16, 2002, 3:25:14 AM, you wrote: DB> Yes, but you also have to take performance into consideration DB> Example DB> <cfset myString = ""> DB> <cfloop from="1" to="1000" index="i"> DB> <cfif myString EQ ""> DB> Hello DB> </cfif> DB> </cfloop> DB> Execution Time DB> 811 milliseconds DB> Compared to DB> <cfset myString = "1"><cfloop from="1" to="1000" index="i"><cfif len(myString)>>Hello</cfif></cfloop> DB> Execution Time 370 milliseconds ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

