I ran my code through xdebug profiler and saw more than 30 percent of the time is spent on the require() calls. What is the best way to improve on this? I saw some posts a
Make sure your includes use absolute instead of relative paths. Easiest way to do this is by prepending your paths with
dirname(__FILE__) // for php < 5.3 __DIR__ // for php >= 5.3