PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a large site containing many seperate includes files containing an number of functions.
All of these includes files are brought together by one main file that includes them all inc.functions.php and this is called by all the pages within my site
My question (out of interest) is by including this file within each of my pages does this effect the performance of each page? I am concerened that pages may be calling on functions that it will not need.
It will create a little bit of overhead. But if your pages are working slowly, this is most likely not the cause. The bit of overhead it causes wouldn't be much in comparison to say... a poorly designed query, or a poorly designed function that is executed.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
hame22
Only way to determine if this slows you down is benchmarking/profiling.
As scottayy said .... performance bottleneck is not likely to be in you including lot of files.
Modularity and granularity are probably more important than the number of functions you have. If they are necessary, they are necessary. But are they optimized? That is the question to answer.