Best practices with Includes
Posted: Fri Jul 22, 2005 11:33 am
We are developing a large application in which we have done a good job of seperating our logic into numerous class files. However as such now when putting our application together we are finding that we have a large number of includes within our code (generally at the top of our files). Now to my knowledge includes are notoriously slow, and we often are using include_once's which are from my understanding even slower. So I think having such a large number of includes in our code is causing it to run a bit slow (after using apd we noticed it is consuming the majority of our run time).
So finally to the question, is there any best practice in PHP for handling a large number of includes? Ways to speed it up, apart from condensing all our class files into one?
So finally to the question, is there any best practice in PHP for handling a large number of includes? Ways to speed it up, apart from condensing all our class files into one?