darya / framework

PHP Web Application Framework
http://darya.io/
MIT License
2 stars 1 forks source link

Improve Autoloader performance and reduce its complexity #8

Open hexus opened 9 years ago

hexus commented 9 years ago

The Autoloader checks a lot of paths for classes. Trim this down and do some method extraction in Autoloader::load(); maybe some protected methods like Autoloader::generatePaths($basePath, $class) and accepting an array of paths in Autoloader::attempt().

hexus commented 9 years ago

Also, maybe Autoloader::map() instead of Autoloader::namespaces().