httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Zobel <jzo...@heute-morgen.de>
Subject Re: splitting a string...
Date Mon, 01 Jan 2007 10:03:45 GMT
Am Montag, den 01.01.2007, 01:48 -0800 schrieb Drew Bertola:
>           APR_BUCKET_REMOVE(e);
>           APR_BRIGADE_INSERT_TAIL(ctx->bb, e);

This is what you should dow with every bucket you dont handle.

>          while ( i < len )
>            {
>              ap_fputc(f->next, ctx->bb, str[i++]);
>            }

This is a performance hog.

Your problem comes from copying the buckets contents with ap_putc while
leaving the original bucket in.

Sincerely,
Joachim



Mime
View raw message