On Thursday 13 December 2001 01:44 pm, Greg Ames wrote:
> Ryan Bloom wrote:
> > I still think the handler_fn function is overkill.  The performance of
> > Apache 1.3 wasn't bad, because we did sane string compares, making sure
> > that the lengths were equal before doing a full strcmp.
>
> You're right, 1.3 was faster than the way we do it now.  But we could do
> better still.
>
> I was thinking of something like a hash or a trie search for exact
> matches on r->handler.  But then OtherBill got me thinking that if a
> module decided that it could serve the request in some earlier phase, it
> ought to be able to do something to latch on to the handler phase and
> eliminate most of the searching altogether.

The problem with this, as I just explained to Bill on the phone, is that you 
are providing two mechanisms to do the same thing.  You are trying to solve
a problem in the core by making it harder to write a performant module.  The
harder it is to write a performant module, the fewer people who will do so.

If you want to make this work for the most modules possible, create a single
model that all modules must implement, and make that perform the best
that it can.

Ryan

______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to