Re: [PATCH] add pool pointer to svn_string_t
From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-12 00:38:37 CEST
On Wed, Oct 11, 2000 at 09:10:35PM +0100, Joe Orton wrote:
I dunno if I count as an "original" Subversion person :-) ... but my basic
However, I'll take this opportunity to make a few additional statements:
*) svn_string was originally conceived as a "smart buffer for manipulating
*) we have 54 calls to svn_string_append* in the code. 40 in our code, 14 in
*) many of those calls are sequences: see
implying that the number of *code points* where append behavior is needed
*) I found 263 instances of '>data' in the code (presumably, the majority
*) This tells me that we are not using the buffering features of the strings
*) why wrap a container around a "const char *" ??
IMO, we should switch to passing "const char *" more often. Where we need
Note also that some of that buffering is meaningless in the presence of
Lastly... consider the code simplification. Go back to to the function
const char *svn_xml_make_close_tag(apr_pool_t *pool,
What could be simpler? :-)
Summary: torch all uses of svn_string. Replace a few with svn_buffer, which
Cheers,
-- Greg Stein, http://www.lyra.org/Received on Sat Oct 21 14:36:10 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.