The LT2's class loader map is not good solution.

The LT2's class loader map is not good solution.

Postby tg8866 on Sat Nov 17, 2007 6:27 pm

base on the flexibility and performance.

the current class loader map is not so smart.

I would like to suppose the Zend Framework's solution.

class load base on it class name.

for example,

we want to load Zend_Controller_Action

we pass the class name "Zend_Controller_Action" to a function

then it search in the main library eg. libs

libs/zend/controller/action.php will be what we want.
Posts: 1
Joined: Sat Nov 17, 2007 6:17 pm

Postby phunkphorce on Mon Nov 19, 2007 2:29 pm

Why does it need to be smart if it's fast? We benchmarked the current class loader versus the implementation in LT 1.2 and the difference was quite small.

We considered the Zend framework approach, but it would require that we rename all classes and that's way too much work.
Lifetype Expert
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Return to LifeType 2.0 Development