News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Andrew Johnstone's Blog: MySQL & PHP Performance Optimization Tips

Krystian Hoffman's Blog: 10 reasons why I use PHP

Zend Developer Zone: Action Helpers in Zend Framework

Padraic Brady's Blog: ZF Blog App - Part 4: Design with Blueprint CSS & Zend_Layout

Michelangelo van Dam's Blog: Zend Framework Bughuntday review


Community Events









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


PHP5 application PEAR cakephp job code package framework book example security zendframework developer releases database zend conference release mysql ajax

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