Adobe Dreamweaver Forums



Last 10 THreads :         Flash Water Fountain Effect (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          Problems handling xml data for tree control. (Last Post : gallaharsha - Replies : 1 - Views : 2 )           »          Anyone know why I can't refer to a label control(id="address") in the component I created? (Last Post : SujitG - Replies : 1 - Views : 2 )           »          Flash CS4 External Lirbrary (Last Post : Federico Rivas Corrales - Replies : 0 - Views : 1 )           »          Drop down menus not working in IE (Last Post : rdcartoon - Replies : 0 - Views : 1 )           »          Problem with Scene changes (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          can't find java virtual machine (Last Post : MrCactu5 - Replies : 1 - Views : 2 )           »          website search term code (Last Post : Dan Bracuk - Replies : 2 - Views : 3 )           »          Flex and JS168 (Last Post : SujitG - Replies : 1 - Views : 5 )           »          form validation (Last Post : Dooza - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 03:56 AM
codism
 
Posts: n/a
Diggs:
Default Re: cfoutput abuse


but once the sample2 code is compiled, i believe that there shud be no difference in execution speed. does not the bytecode perform the necessary adjustments ??


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 03:56 AM
Ian Skinner
 
Posts: n/a
Diggs:
Default Re: cfoutput abuse

codism wrote:
> but once the sample2 code is compiled, i believe that there shud be no difference in execution speed. does not the bytecode perform the necessary adjustments ??


Pretty much, or if there is a difference it is very tiny and would not
really compensate for hard to read and maintain code.

The following does not really apply to the example you provided, but
using <cfoutput>...</cfoutput> block somewhat like your second example
can be explained as a form of whitespace management.

If one uses the <cfsetting enableCFoutputOnly="true"> tag, then only
content inside of <cfoutput>...</cfoutput> blocks will be sent in the
response. This can be used to control whitespace something like this.

<cfsetting enableCFoutputOnly="true">
<!--- A bunch of cf processing --->
<cfloop this...>
<cfloop that...>
<cfquery something ...>

<!---output the results--->
<cfouput>What needs to be seen</cfouput>

<!---More cf processing --->
<cfset something equals somethingElse>
<cfif this or that>
<cfswitch experssion="#justForFun#">

<!---again output the results--->
<cfoutput>Only this will be seen</cfoutput>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk