single big files for PHP or lots of small ones?

D-Cptn

New Member
I have a server which I try to optimize for speed (php/mysql). From a speed standpoint, is it better to keep a big file with all my functions in it so as to have only one file to include? Or is it better to have many, small, task-optimized includes that will include depending on the job at hand (that solution produces 4/5 even 6 files to include). Moreover, I do use the pear/MDB2 lib for database access. Does this add any overhead instead of using plain php calls? (including pear/MDB2 is one include plus, at least)Thank you all in advance!
 
Back
Top