www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: 2.0.26?]
Date Thu, 30 Aug 2001 23:34:04 GMT
Crossposted to dev@httpd.apache.org

From: "Ian Holsman" <ianh@cnet.com>
Sent: Thursday, August 30, 2001 5:42 PM

> William A. Rowe, Jr. wrote:
> > Have any of you had a chance to play with the change from using <Directory proxy:foo>
> > syntax to using <Proxy foo> syntax?  Any comments from the first few days
of it's
> > existence?  Anyone playing with benchmarking 2.0.24 vs. cvs head on req/sec?
> I was benchmarking cvs head with different pool allocation algorithms.
> (and threaded/prefork) http://webperf.org/a2/v25
> I'm playing with the proxies and mod-include at the moment
> the only thing 'funny' I'm noticing is that the map_to_storage hook
> isn't getting called for a sub-request.. this may be my code
> I just noticed that 10 minutes ago,
> I'm still investigating it.

That would be a problem.  It doesn't surprize me either.  Every month I go back over the
discrepancies in the internal_internal_redirect v.s. ap_process_request v.s. all the
other ways we set up redirects/subrequests.

These distinctions have to go away.  Not that the steps can't be _heavily_ optimized
by looking at r->prev or r->main for clues, but we need a single code path through
this potentially tricky code.

Notice all the fooness in the subreq mechanisms "Hey, if this, then we don't need to
do that!"  All well and good until some module gets hurt ;)  If the authn/authz module
_itself_ peeked at the pool data for r->main->p, "my_own_cache" and sees it's being
redundant, it pulls a fast exit (fast OK, fast DECLINED, or fast HTTP_NOT_AUTHORIZED.)

There is probably another weeks worth of work in optimizing these modules (see the
ap_location_walk function for such an example.)  Then all these code paths can be folded
into a single place.

First I'm trying to narrow down ap_directory_walk to a single function (the new 
implementation, I hope it's easier for everyone to follow.)  Once that is done, I'll
put the same optimization from ap_location_walk onto ap_file_walk and ap_directory_walk.
[You might even steal the code I add to ap_directory_walk for proxy_walk :)

Then on through the module hooks.  Anyone who wants to join me, speak up and we will
divy it up ;)  I just have to get the new directory_walk code in so a very thorough
review can begin.


View raw message