• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Speed vs <cfincludes

Explorer ,
Mar 09, 2008 Mar 09, 2008

Copy link to clipboard

Copied

I want to know effect on response time of having 30 cfincludes in one cfm template.

We have this site which displays lot of data on single page. I will be using coldfusion caching to gain some speed advantage.

what do you think of code like

<!--- box1 --->
<cfmodule name='SomeHtmlDesignAroundContent'>
<cfinclude template='Query_item1.cfm'>
<cfinclude template='Display_item1.cfm'>
</cfmodule>
<!--- End box1--->

and having atleast 10 such boxes on one web page. I haven't used fusebox development methodology extensively but this is something like fusebox.
Thank you.
TOPICS
Advanced techniques

Views

336

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 09, 2008 Mar 09, 2008

Copy link to clipboard

Copied

For speed, it's the code that counts, not how you call it. cfincludes are just one way of re-using code. Another advantage of using it is, if you have a page that does several things, using cfincludes helps you develop it in stages.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 09, 2008 Mar 09, 2008

Copy link to clipboard

Copied

LATEST
> I want to know effect on response time of having 30 cfincludes in one cfm
> template.

Negligible compared to the overhead of the code within the includes. I
wouldn't worry about it.

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation