Print Page | Close Window

Include Files...

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=9174
Printed Date: 28 March 2026 at 4:07am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Include Files...
Posted By: MrCarl
Subject: Include Files...
Date Posted: 23 January 2004 at 5:38am

Just wondering where people draw the line on modulising include files, what I mean by this is do you feel its better to have one large include file on all pages (so sometimes some functions etc in the include file are not used) or do you seperate them into smaller ones, where occasionally some pages may be calling for 5-6 include files??

Basically I wanted to know if its bad practice to be calling 5-6 or more smaller include files on a page?? Is this gonna be slowing things down a lot??

- Carl S




Replies:
Posted By: michael
Date Posted: 23 January 2004 at 9:42am
Correct me if I am wrong but I think you have better performance including on larger file then 5 small files. Modulisation ok but keep logic, place your main functions in an include, all you custom data functions in one but not every single function into it's include file.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: KCWebMonkey
Date Posted: 23 January 2004 at 10:32am

I designed an intranet site that utilizes about 10 include files per page, and i see virtually no decrease in performance.

The server has to run through the page at runtime anyways, and it really doesn't slow it down to pull a few more include files...



Posted By: dpyers
Date Posted: 23 January 2004 at 7:45pm

I think you have to decide if you want to optimize your includes for performance, or for maintainability. If you have 2 or 3 includes that are used together 90% of the time, you'll save a couple of I/O's by budling them into one include, but increase memory utilization on the 10% of pages where they're not used together.

Personally, I prefer organizing the includes for maintainability - e.g. all the I/O in one include, etc.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: ljamal
Date Posted: 23 January 2004 at 8:57pm
I place them into one include and I break them down after I have finished a project. Most times, I find that there are some that are only used on a single page or a group of page and that most are used on a lot of pages.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Bluefrog
Date Posted: 23 January 2004 at 10:59pm

If you look at it from a cost perspective, on very large busy sites, it might be better to only include what you need, but for small to medium sized sites, human resources are more expensive, so maintainability is the largest cost factor.

MS has a stress testing tool that you can use, but probably a good rule of thumb is that you don't need to worry about it until the site requires a dedicated/co-located server.



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net