How to create a fast php library in PHP Server Side Scripting Language?


1 Answer(s) available


  • Manage all includes manually, only where needed
  • Set your include_path to only where it has to be, the default is something like .:/usr/lib/pear/:/usr/lib/php, point it only at where it has to be,
  • Don't use autoload, it's slow and makes APC and equivalent caches jobs a lot harder
  • You can turn off the "stat"-operation in APC, but then you have to clear the cache manually every time you update the files


Related Questions