I try to increase performance of Openbiz by change class loader (include autoloader) on Openbiz core library and other library (Zend Framework)
I have resume about point of Openbiz performace:
- use autoload instead include_one call
- strip include_one call
- use standard autoloader for Zend Framework,
- use class map autoloader for OpenBiz core class
- autoloader not same with BizSystem::loadClass(), don't use BizSystem::loadClass() for autoloader
- BizSystem::loadClass()
support dot package (modules.form.ClassName)
need Resource::getLibFileWithPath()
use by:
MetaIterator::_construct
(currently used by autoloader too, but not recommended)
- autoloader :
never support dot package (never use dot package)
never need Resource::getLibFileWithPath()
so don't use BizSystem::loadClass()
use by Zend Framework, Smarty (partial), Openbiz core (instead service)
- ObjectFactory::constructObject()
never need autoload,
have internal class loader
use core class first, event service (EasyForm, EasyView, BizDataObj)
80%+ use core class (EasyForm, EasyView, BizDataObj, Elements)
this is my result for login page (cubi)
Original Openbiz class loader : Processing time: 0.1134 seconds
Optimized Openbiz class loader : Processing time: 0.0979 seconds
If you want to try, please download from this link
http://www.openbiz.web.id/index.php/download/summary/1-openbiz/2-openbiz-performance-optimized-30b
Agus Suhartono
http://www.openbiz.web.id