Nick Lo wrote:
> Hi Darby,
> 
>>> Finally, I would recommend that Zend_Loader be eschewed, in favor of
>>> using require_once, whenever possible. If there are any framework
>>> components using Zend_Loader, where require_once would work nicely
>>> instead, please let us know about it.
> 
> Based on that recommendation, is it correct then to presume that it
> would be wise to also avoid using Zend_Loader::registerAutoload() for
> the same performance reasons?
> 
> Nick

Well, I would say that the Zend_Loader that came with ZF 1.5.0 PR is not
as fast as it could be and should probably not be used in production
without some impact testing. That said, it may work fine for you,
depending on the situation. There is no doubt a penalty for using
autoloading, more so with the Zend_Loader of ZF 1.5.0 PR, but whether
that penalty is acceptable to you completely depends on the situation.

I recently removed some performance-hindering error handling code from
Zend_Loader, so the latest version in trunk should be much better, and
this would be included with ZF 1.5.0 RC1.

Best regards,
Darby


Reply via email to