No, there's always a performance penalty for making a page go through CF 
before the web server.

HTML pages always (unless specifically set up otherwise) go straight 
from the hard disk to the web server to the browser.

CFM pages always (uneless misconfigured or on purpose) go from the HDD 
to the CF Server, are Parsed and outputted in CF, then sent to the web 
server, then the browser.

The compilation only happens on the first hit, you're correct, but after 
that, CF runs compiled classes. It still has to run it each time though.

-nathan strutz
http://www.dopefly.com/


Marco Antonio C. Santos wrote:
> Dave
> 
> that speed penalty only occurs in the firts load page right? After
> that the "compiled" class file will load very fast... right?
> 
> Cheers
> 
> Marco
> 
> 
> On Thu, 2 Dec 2004 12:37:31 -0500, Dave Watts <[EMAIL PROTECTED]> wrote:
> 
>>>When developing an entire website, I occasionally develop a page with
>>>no CF-specific content whatsoever (although it happens remarkably
>>>rarely). Is there any advantage or disadvantage to naming these pages
>>>with a HTM extension rather than a CFM extension? Is there a speed
>>>penalty?
>>
>>Yes, there is a speed penalty for CFM pages. Static files are much faster
>>than CFM files, even if those CFM files don't actually contain program
>>commands. If you don't want to incorporate some CF functionality into those
>>pages, such as controlling access via Application.cfm, you're better off
>>using a static file extension.
>>
>>Dave Watts, CTO, Fig Leaf Software
>>http://www.figleaf.com/
>>phone: 202-797-5496
>>fax: 202-797-5444
>>
>>
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185981
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to