[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: The recent svn_string_create_empty() function

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Thu, 5 Apr 2012 10:53:43 +0100 (BST)

Stefan Fuhrmann wrote:
> Daniel Shahaf wrote:
>> Julian Foad wrote on Tue, Apr 03, 2012 at 18:09:19 +0100:
>>> For comments, please:
>>> [[[Tweak the recently introduced svn_stringbuf_create_empty() function.
>>>
>>> Unlike with svn_string_create_empty() which produces an immutable
>>> string, the resulting string buffer is often going to have data
>>> appended to it.
>> I don't see an issue with it.  +1
>>
> Well, the point was that those *won't* get data appended
> but rather get resized later and *then* filled. IIRC, I used it
> for all kinds of receive / decode buffers.

Lots of places don't use it that way, they simply append.

> For now, however, the change is fine. Once I got through my
> commit backlog, I may run the profiler again and see whether
> there is an issue or not.

Great, thanks.  r1309730.

- Julian
Received on 2012-04-05 11:54:22 CEST

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.