2010年1月19日星期二

Re: [fw-mvc] Modulralias URL Alias module for Apache that could help ZF's router

I'm not exactly familiar with Apache API internals and C but wouldn't it make more sense to implement this as a PHP extension instead? Especially considering portability. As extension are also written in C you can still gain the extra speed.


On 19.01.2010, at 14:06, Julien Pauli wrote:

> Hi ;-)
>
> We all know that making the route decision from C code (Apache) to PHP code (ZF router) is bad for performances.
> I don't have measures, but IMHO , ZF routing is at least 20% less efficiant than Apache's C-written one (one again, I dont have references, but if someone does, just share them )
>
> I already pinged Matthew about developping an Apache module which could be added routes like ZF's router behavior, and populates $_SERVER['module'] , $_SERVER['ctrl'] and $_SERVER['action'] (for example).
>
> A friend of mine, Jerome Renard, has already developped something similar ; let's see http://code.google.com/p/modurlalias/.
> The goals are mainly the sames, and by rewriting some parts of this code, we could have something cool.
>
> Are there any C skilled dev in the place (with Apache modules exeperience could be great) ?
>
> Anyway I'm gonna work on that idea for my own, so ping me if interrested.
>
> J.Pauli

没有评论: