Martel Valgoerad wrote:
By the way, you may achieve a significant performance boost refusing
to use the resourse-consumpting RewriteRouter.
Do you have any benchmark data to support that theory? I agree it's doing a lot
of work compared to the basic router, but even that shouldn't result in
_significant_ loss of performance.
I have made some profiling using XDebug and KCacheGrind just to be sure.
RewriteRouter's routing takes 1.43% of run time for the whole hello world
application. Plus 0.31% and 0.55% for inclusion of it's files. Compare it to
Zend_Controller_Front::getInstance() which takes 1.08% of the time. So let's
say RewriteRouter takes only two (maybe three!) times more time than simply
obtaining an instance of the Front Controller. For all it's operations.
Not to mention just LOADING (I mean require_once) of front conroller
(Front.php) or main Zend (Zend.php) classes which took 9.25% and 7.96%
respectively.
34 kB cachegrind file is available for everybody. Just ask if you wish to see
it for yourselves. Tested on a desktop machine with Athlon 2500+ and 512 MB of
RAM.
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"A paranoid is someone who knows a little of what's going on." -- William S.
Burroughs