You are misunderstanding how interpreted code (PHP, ASP, Perl) actually works. IF it was compiled code such as ASP.net then it can affect the "footprint" of the application.
Including all the references to code and classes does not impact on the resources used, it does not impact on the script load times. Even in ASP where the interpreter does TWO passes through the included pages there is absolutely no increase in script times (or if there is it is in microseconds).
For www.modtalk.co.uk the global include file (in every page) calls in 120 different includes and class definitions, it also instantiates 60+ objects (yep OOP in VbScript)
The objects are destroyed as the script ends.
With PHP, ASP etc the page is called, served then destroyed, loading "redundant code" does nothing at all. If the functions, classes, methods are needed they get called, if they are not needed they are simply ignored.
Just as long as you use correct practice and close and destroy any objects that have been instantiated there will be no "ill effects" whatsoever.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|