At 10:55 AM 4/15/2002 -0500, you wrote:
>While on this topic, how about efficiency with cfoutput?
>
>It makes sense to me that this:
>
><select name="fred">
>         <cfloop query="fredQ">
>                 <option
>value="<cfoutput>#val#</cfouput>"><cfoutput>#valDesc#</cfouput>
>         </cfloop>
></select>
>
>is faster than this:
>
><cfoutput>
>         <select name="fred">
>                 <cfloop query="fredQ">
>                         <option value="#val#">#valDesc#
>                 </cfloop>
>         </select>
></cfouput>

  Consider this..
   Every time that you use a ColdFusion tag, a C function is called.
   The second one has less ColdFusion tags, and therefore should run more 
efficiently.

  Two different people with two different 'intuitions' I would like to see 
numbers too.  ( wish I had time to do testing )


>But what about these?
>
><select name="fred">
>         <cfoutput query="fredQ">
>                 <option value="#val#">#valDesc#
>         </cfoutput>
></select>
>
><select name="fred">
>         <cfloop query="fredQ">
>                 <option value="<cfoutput>#val#">#valDesc#</cfouput>
>         </cfloop>
></select>

  In this case, my intuition would say that the first is quicker, based on 
the same "Less CF Tag" reasoning.


--
Jeffry Houser | mailto:[EMAIL PROTECTED]
Need a Web Developer?  Contact me!
AIM: Reboog711  | Fax / Phone: 860-223-7946
--
My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com 

______________________________________________________________________
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

Reply via email to