CFSAVECONTENT is the fastest, since it doesn't have to make a bunch of
intermediate strings to produce the final product, whereas CFSETs
would...

-Dov 

-----Original Message-----
From: Steve Bryant [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 9:53 AM
To: CF-Talk
Subject: Re: CFSavecontent vs. multiple CFSets

For me, cfsavecontent looks more natural. The result is easier to see
and more visual space is given to the action performed than the language
performing the action.

Steve

Steve Bryant.
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/ 

> In running through a shopping cart codebase (cartweaver), I decided to

> change a chunk of 40 or so CFSET operations into a single 
> CFSAVECONTENT block. As this was for building an XML packet, it looked

> logical to me. No real savings in code size but to me it just looked 
> cleaner and looked like 'less' operations.
> 
> Question: What is your preference in such situations. Multiple CFSETs 
> with each adding a new line of XML to the variable or a block of 
> CFSAVECONTENT with the entire block wrapped in a CFOUTPUT?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220666
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to