by invisible · 15y ago · 0 comments
Things in favor of Autoload:
1) Ease-of-use of not worrying about if your class is available
2) If you don't use Autoloading and require clases, you have to load all of those from the opcode cache (and make APC keep track of them) despite that you may not be using many of those classes at all.
3) It helps encourage putting things in classes (whether they are static functions or not).
4) If you ever need to conditionally require a class, you are likely going to run into the same opcode cache hits (instead of NOPs) as Autoload. You'll have to include ALL of your classes to avoid the problem.