Put commenting in between two <cfsetting> tags like this:

<cfsetting enablecfoutputonly="yes">
        <!--- comments comments comments --->
<cfsetting enablecfoutputonly="no">

This will strip out the white space used by the commenting from being sent
to the browser (which is why you're seeing a performance degradation.)  I
prefer to envelope my processing code in the same <cfsetting> tags for the
same reason.

Sharon


At 04:15 PM 4/19/2000 -0400, Mike Amburn wrote:
>in the past, we encouraged developers to comment their code as often as
>possible. however, after running a few tests between a page with a lot
>(20-30 lines of comments) of comments aginst the same page without the
>comments, the performance of the latter is about a 100% gain.
>
>i was under the impression that you could add as many lines of comment as
>you wanted without affecting performance at all. is this incorrect?
>
>,ole
>
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to