Ben Forta has this info on his site. It's in a PowerPoint presentation, so I don't have a direct link.
Go to www.forta.com....clikc ColdFusion.....clikc on CF resources.....go to bottom of page (or close to bottom) and look for Tips and Tricks from the CF Masters (or something like that)....then select the CFLOOP Vs CFOUTPUT in the left frame (also look at the section about not overdoing CFOUTPUT) Once again a great resource from Ben ;-) Bryan Stevenson VP & Director of E-Commerce Development Electric Edge Systems Group Inc. p. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com ----- Original Message ----- From: "Steve Oliver" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 12:39 PM Subject: RE: Best Practice on using/optimizing cfoutput and cfloops > I've read that cfloop is faster when doing certain things, but if your > using it to cfoutput, like this: > > <cfloop query="qryName"> > <cfoutput>#var1#</cfoutput> blah blah blah > <cfoutput>#var2#</cfoutput> > </cfloop> > > That way supposedly runs slower because CF has to parse the data in each > cfoutput. > > ______________________ > steve oliver > atnet solutions, inc. > http://www.atnetsolutions.com > > > -----Original Message----- > From: Dave Carabetta [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 3:33 PM > To: CF-Talk > Subject: Re: Best Practice on using/optimizing cfoutput and cfloops > > > I would actually disput that claim. I can't find the article for the > life of > me, but I think Michael Dinowitz or somebody wrote an article some time > ago > comparing the two methods. From what I remember CFLOOP is faster because > it > is a "dumbed down" way of outputting your data. It doesn't look for > record > set counts or anything, it just loops over whatever you give it. I wish > I > could support this claim with valid links to writings, but I know I have > > heard and read that CFLOOP is faster. > > Dave. > > > ----Original Message Follows---- > From: "Paul Giesenhagen" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: CF-Talk <[EMAIL PROTECTED]> > Subject: Re: Best Practice on using/optimizing cfoutput and cfloops > Date: Fri, 1 Feb 2002 12:47:24 -0600 > > <cfoutput> is much faster than cfloop .... always try to use cfoutput > when > you can. > > Paul Giesenhagen > QuillDesign > http://www.quilldesign.com > SiteDirector - Commerce Builder > > > > > I am wondering if anyone can advise if one practice (below) is more > > efficient than the other. > > > > > > Practice 1: Enclosing every instance on #variables# in cfoutput tags > > > > <body> > > <cfoutput query="query_name"> > > #query_variable# > > </cfoutput> > > </body> > > > > > > > > VERSUS > > > > > > > > Practice 2: Enclosing the entire code in a single cfoutput and use > cfloop > > when necessary > > > > <body> > > <cfoutput> > > <cfloop query="query_name"> > > #query_variable# > > </cfloop> > > </cfoutput> > > </body> > > > > > > > > Any advise to demystify any 'performance penalties' would be > appreciated. > > > > > > > > Thanks, > > > > Michael > > > > > ______________________________________________________________________ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists