PHP: Speed Question

Hi.. I am programming my biggest application (it's about 300kb of just code) and I have a question on speed.

Well I have about 30% of my code in "users.php" and 30% in "index.php".

To clean things up a little, I have thought about placing all the code into one file "index.php".

THe pages all execute if statements on urls like
index.php?action=category
or
users.php?action=control_panel

I can easily amalgamate the two files, but I was wondering if this would cause any severe server lag or loss in speed.

I have tried this on my own system and have had experienced no changes in speed but I was wondering what would happen on a larger scale.

Thanks :) Any help is appreciated.it would really all depend on how many people are on that page. if you combine all of your code to 1 file than you will have problems if mass people view it at once. keep what you got and in fact you could make it smaller by making more files.
 
Back
Top