cfoutput abuse

This is a discussion on cfoutput abuse within the Cold Fusion forums in Application Servers & Tools category; I have a question abt the overuse of cfoutput tags. For example will the code in Sample 1 run faster than that in Sample2. Specifically can someone throw a light on the differences in the class files which will be generated for the below samples. Thanks a lot. Sample1: <cfoutput> <input type="text" value="#x#"> <input type="text" value="#y#"> <input type="text" value="#z#"> </cfoutput> Sample2: <input type="text" value="<cfoutput>#x#</cfoutput>"> <input type="text" value="<cfoutput>#y#</cfoutput>"> <input type="text" value="<cfoutput>#z#</cfoutput>">...

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 06:13 AM
codism
Guest
 
Default cfoutput abuse

I have a question abt the overuse of cfoutput tags. For example will the code
in Sample 1 run faster than that in Sample2. Specifically can someone throw a
light on the differences in the class files which will be generated for the
below samples.
Thanks a lot.

Sample1:
<cfoutput>
<input type="text" value="#x#">
<input type="text" value="#y#">
<input type="text" value="#z#">
</cfoutput>

Sample2:
<input type="text" value="<cfoutput>#x#</cfoutput>">
<input type="text" value="<cfoutput>#y#</cfoutput>">
<input type="text" value="<cfoutput>#z#</cfoutput>">


Reply With Quote
  #2  
Old 08-26-2008, 02:53 PM
BKBK
Guest
 
Default Re: cfoutput abuse

If you loosely interprete cfoutput as a function then Sample2 contains three
function calls, and Sample1 one function call. However, if you want to start
comparing speeds, then you will need strings that are much, much longer.



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:20 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.