Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: RE: cfloop vs cfoutput
Kola Oyedeji (13p/+0r)     Posted: Thursday 10 May 2001
This post: 55 views, +0 rating

Thanks for clearing that up for me

KOla

-----Original Message----- From: Philip Arnold - ASP [mailto:pra@aspmedia.co.uk] Sent: 10 May 2001 12:03 To: CF-Talk Subject: RE: cfloop vs cfoutput

> Sorry for the crosspost (had conflicting answers from other lists) > > but is there a consensus on which method of looping over a query > is fastest? > > cfloop or cfoutput..

OK, I know you've posted a "Winner" post, but here's the reasoning behind why CFOutput is slower than CFLoop

When you run a CFOutput, CF has to look through as see what has to be converted for "output", i.e. #s around variables etc.

When you run a CFLoop, it just assumes that anything that's a non-CF tag is to be sent to the browser, and it runs the tags as it reaches them

Ideally, you should put a CFLoop around the code you wish to loop over, and only put CFOutput around the variables you want outputted - that provides the best performance on the server (which is probably the most important in most circumstances)

Although, I don't like using this method for development (it's harder to read), the performance over many thousands of hits is noticable

HTH

Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133

"Websites for the real world"

********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************


Similar Subject Line Posts (+/- two weeks of this post)
RE: cfloop vs cfoutput  10 May 2001 (this post)   (55 v/ +0 r)
RE: cfloop vs cfoutput  10 May 2001   (75 v/ +0 r)
RE: cfloop vs cfoutput - THE WINNER IS...  10 May 2001   (50 v/ +0 r)
RE: cfloop vs cfoutput  09 May 2001   (48 v/ +0 r)
RE: cfloop vs cfoutput  09 May 2001   (62 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (43 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (55 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (58 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (78 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (59 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (76 v/ +0 r)
Re: cfloop vs cfoutput  09 May 2001   (55 v/ +0 r)
cfloop vs cfoutput  09 May 2001   (45 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000