stas        2003/12/01 12:23:59

  Modified:    src/docs/1.0/guide Changes.pod performance.pod
  Log:
  Using AliasMatch instead of Alias saves yet another stat call
  Submitted by: [Eric Kolve <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.38      +4 -1      modperl-docs/src/docs/1.0/guide/Changes.pod
  
  Index: Changes.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/1.0/guide/Changes.pod,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -u -r1.37 -r1.38
  --- Changes.pod       15 Nov 2003 06:12:21 -0000      1.37
  +++ Changes.pod       1 Dec 2003 20:23:59 -0000       1.38
  @@ -32,9 +32,12 @@
      redirects. [Alan Bailward, <alan (at) ufies.org>]
   
    o Added a short version of the mysql back script ["mire"
  -   <[EMAIL PROTECTED]>]
  +   <mire (at) sezampro.yu>]
   
   * performance.pod
  +
  + o Using AliasMatch instead of Alias saves yet another stat call 
  +   [Eric Kolve <ekolve (at) comcast.net>]
   
    o Note about browser not rendering immediately even under $|=1.
      [Lee Goddard <home (at) LeeGoddard.com>]
  
  
  
  1.27      +12 -0     modperl-docs/src/docs/1.0/guide/performance.pod
  
  Index: performance.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/1.0/guide/performance.pod,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -u -r1.26 -r1.27
  --- performance.pod   25 Nov 2003 22:45:41 -0000      1.26
  +++ performance.pod   1 Dec 2003 20:23:59 -0000       1.27
  @@ -3589,7 +3589,19 @@
   
   in the normal way (no C<E<lt>PerlE<gt>> section required).
   
  +There is an even simpler way to save that last C<stat()> call. Instead
  +of using C<PerlTransHandler> combined with:
   
  +  Alias /foo /
  +
  +we can use:
  +
  +  AliasMatch ^/foo /
  +
  +which in the current implementation (at least in apache-1.3.28)
  +doesn't incur the C<stat()> call. Using the regex instead of prefix
  +matching might slow things a bit, but is probably still faster than
  +the C<stat()> call.
   
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to