Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lose performance with large include files ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I use a lot of self defined functions for my application. Because I re-use several functions in more then one page I would like to put all functions in one include file and then just call this include on every page. On the other hand, I don't need all functions on every page... so I'm making the code bigger then strictly necessary.
The include file would be about 1500 lines of code. Do I have to worry about performance?
Thanks,
Tomas
 
Eventually yes. Because ASP has to compile the code prior to running the page(s) every time. At what point it will start to degrade your performance is purely based on the server you are running the ASP on. All you can do is try it out..

ToddWW
 
It compiles ONLY the first time it is called and when the compiled ASP has been removed from the ASP cache. If every ASP was compiled every time there would be no ASP Web sites of any appreciable size.
See
"AspScriptFileCacheSize
This property specifies the number of precompiled script files to cache. If 0, no script files will be cached. If -1, all script files requested will be cached. This property can be used to tune performance, depending on the amount of memory available and the amount of script file traffic.

Data type Long
Default value 250" Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top