-- Richard Thomas <[EMAIL PROTECTED]> wrote
(on Saturday, 25 November 2006, 07:54 AM -0600):
> I understand how Zend cache works, what I am suggesting is the addition 
> of Zend Cache to the Controller/Dispatcher so the first request it sits 
> there and figures out what class to load, checkes the file exists, the 
> class exists then runs the controller class.

While I haven't added caching to the dispatcher currently, you might
want to see if the most recent revisions in subversion speed things up.
Specifically, I removed all use of the Reflection API from the
dispatcher, which should see an 8-10% performance gain. Additionally,
with the changes to Zend::isReadable(), you may see further gains.
Finally, Zend_Http_Request was moved into Zend_Controller_Request_Http,
which removes more reflection calls and callbacks, providing better
performance.

All of the above changes were made as of Wednesday, so a snapshot from
the past couple days would reflect them, as does subversion, obviously.
Give them a spin and let me know if you see better performance.

> The second load all these checks would be cached and things would be a 
> lot faster, but the generation of views and such would still be dynamic.

This may be considered premature optimization; then again, it might be a
good idea. I'd like to see more benchmarks and debugger output before
adding something like caching, as it adds further file calls and
complexity to the system.

> Fabien MARTY wrote:
> > 2006/11/25, Richard Thomas <[EMAIL PROTECTED]> :
> > > A lot of my applications are so dynamic that I have to do caching at a
> > > block level not a page level, now looking at
> > > http://zend.cyberlot.net/
> > > We see a majority of time is handling dispatch, Would it be feasible to
> > > add a caching layer into the controller so it could "remember" how to
> > > handle requests.
> >
> > It's already possible to do that with Zend_Cache (with a specific
> > option of Page frontend).
> >
> > Have a look at the last example of this page :
> >
> > http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.page
> >  

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to