-- Goran Juric <[EMAIL PROTECTED]> wrote
(on Tuesday, 14 October 2008, 03:20 AM -0700):
> wllm wrote:
> > * Performance enhancements
> > 
> 
> What kind of performance enhancements were made? Is there a changelog
> somewhere?

The issue tracker is the changelog. :)

In this particular case, the performance enhancements were made to the
PluginLoader, which is used in a variety of places in the framework.
Basically, we were looping over paths manually and checking if a file
was readable; this becomes slower and slower the more paths that need to
be traversed to find the correct file. Ironically, there's an option in
loadFile() that allows you to pass a set of directories to loop over;
directory iteration is done by resetting the include_path briefly and
using fopen(), which has an argument for searching the include_path --
which is many times faster than manually doing it. The net gain is
around 12.5% in a real-world application (i.e., 1/8 increase), but could
vary based on the requirements of your application.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to