httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [PATCH] <Location > block speed up
Date Wed, 21 Jan 2004 15:33:40 GMT
Brian Akins wrote:
> How "wrong" would it be to have a map_to_storage that simply filled out 
> r->finfo and returned OK (or the appropriate error) always?  IE, no 
> directory or file walk.  From what I understand, Directory and File 
> directives would be useless, but Location would still work.  Is this 
> correct?

When the URI represents a file, the directory walk fills in r->finfo fairly 
efficiently  - just one stat() typically followed by an open() from the handler. 
  I'd like to see that change to an open() - fstat() sequence to be even more 
efficient, but that's a different topic.

What I'm trying to do here is deal with the case where the URI is known to be 
completely outside the filesystem, like server-status for example.  r->finfo is 
meaningless in that case - there is no file as far as the core code can tell.


View raw message