News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPImpact Blog:
Improving the performance of Zend_Controller
July 15, 2008 @ 09:32:23

The PHP::Impact blog has a quick performance tip posted today for all of the Zend Framework-ers out there that are seeing some poor performance with their Zend_Controllers.

Zend_Controller_Front gets an instance of Zend_Controller_Router_Rewrite, routes the request, iterates through all the provided routes and matches its definitions to the current request URI. The problem with this is that the more routes you add, the more time the router will take to find a positive match.

Federico includes a few benchmarking stats to back this up ranging from four routes up to forty. His solution is to place the routes in different files and set the location with a Zend_Config_Ini object. This makes the controller only load the ones that are needed instead of pulling all forty into memory to have to parse through.

0 comments voice your opinion now!
performance zendframework zendcontroller routing route


blog comments powered by Disqus

Similar Posts

Fabian's Blog: Better Performance patch for Symfony 1.0.x and Propel 1.2

Zend Developer Zone: Indexing Email Messages with PHP, Zend Lucene and Sphinx

Mastering Zend Framework: Gary Hockinís Maximising Zend Framework 2 Performance Talk (Review)

Jim Plush's Blog: Rethinking the Zend Models

Erika Heidi Reinaldo: Optimizing Symfony applications on Vagrant boxes


Community Events

Don't see your event here?
Let us know!


release opinion api language podcast voicesoftheelephpant interview introduction framework laravel unittest library series version development community extension video php7 laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework