apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: [PATCH] performance improvement for apr_pstrcat
Date Thu, 27 Sep 2001 02:16:55 GMT
On Wed, 26 Sep 2001, Brian Pane wrote:

> apr_pstrcat does two passes through its args: one to compute the
> length, a second to do the copying.  This patch adds a buffer to
> save the lengths of the first 6 args so that the second pass
> doesn't need to another strlen on them.  (If you pass in more than
> 6 strings to concatenate, this optimization just gets applied to the
> first 6.)

Ahh, how I wish we had those nifty counted strings.  But anyway, since
that's not gonna happen anytime soon, +1.

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message