On Wed, 14 Mar 2007 11:15:00 -0400
Jim Jagielski <[EMAIL PROTECTED]> wrote:

> 
> On Mar 14, 2007, at 11:01 AM, Nick Kew wrote:
> 
> > Oh, I guess you mean the copying to get a null-terminated string
> > when applying a regexp?  And I see it's repeated for every regexp
> > (ouch)!  mod_line_edit uses a local pool which is cleared at the
> > end of each brigade, and avoids multiple copies of the same buffer.
> >
> 
> Hmmm... I'm confused. The way I do it is:
> 
> loop over sed scripts
>    loop over buckets
>      read bucket
>        make copy of bucket data for regex comparison

You're right, I was confused, and mod_line_edit does exactly the same.
What I'd like to get rid of is that copy inside the loop: once
copied, the copied bucket data should be reusable for other scripts.
But as we both found, that's harder!

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Reply via email to