> > My testing agrees with this.  This flies in the face of what Chris 
>Cortes
> > says in his book "Optimizing ColdFusion 5."  Page 404.  Or am I reading 
>it
> > wrong?  Does anyone else have any beefs with this book?
>
>The book is referring to it being more efficient to wrap <cfoutput> tags
>around individual variables instead of entire paragraphs that contain one 
>or
>two variables (or a populated form where the field values contain CF
>variables, etc).  What he's saying is true in most circumstances.
>
>The example you're talking about is by design, inefficient.  Of course 
>using
>a <cfoutput> tag within a loop that could be done with a <cfoutput 
>query="">
>will be slower.  Perhaps that is why Allaire chose to give cfoutput that
>functionality?
>

I have to take issue with your last paragraph. I don't know what's going on 
in the examples in the book because I don't own it. However, as has been 
discussed here way too many times (check the archives), CFLOOP QUERY="" has 
been tuned starting with CF 4.01 to be faster than CFOUTPUT QUERY="". Now, 
there are many variables that play into making that statement (query size, 
etc.), but the general "rule" has been that CFLOOP QUERY="" is a bit faster 
in the latest versions of CF.

But I do want to point out that what Dave Watts said in a response to this 
thread is very true as well, and more important. There are lots of other 
areas (caching, etc.) to focus on first before looking at the performance 
difference between CFOUTPUT QUERY="" and CFLOOP QUERY="". Tackling those 
issues will lead to far greater performance statistics than whether you use 
CFOUTPUT or CFLOOP.

Just my $.02.

Regards,
Dave.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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