httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@remulak.net>
Subject Re: [PATCH] mod_include parser optimization
Date Mon, 19 Nov 2001 16:12:31 GMT
Brian Pane wrote:
> 
> This patch optimizes away some pointer arithmetic in the
> inner loop of the BNDM string-search algorithm in mod_include.
> 
> The optimization takes advantage of two invariants in the
> original code:
>   * Every time the variable 'skip' is set, skip==p-pi
>   * The only use of skip as an rvalue is in the expression "pi += skip".

Looks good in theory.  I haven't tested it.

Greg

Mime
View raw message