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

Re: svn commit: r1069743 - /subversion/trunk/subversion/libsvn_subr/svn_string.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 11 Feb 2011 13:07:05 +0000

Julian Foad <julian.foad_at_wandisco.com> writes:

> On Fri, 2011-02-11, ivan_at_apache.org wrote:
>> URL: http://svn.apache.org/viewvc?rev=1069743&view=rev
>> Log:
>> Optimize svn_string_t creation by allocating memory for svn_string_t
>> structure and data in one chunk.
>>
>> * subversion/libsvn_subr/svn_string.c
>> (svn_string_ncreate): Allocate memory for svn_string_t and data in one
>> chunk.
>
> Nice optimization!

It does save a function call, but the memory pools mean that there is no
memory saving. It's probably more of an optimization when pool
debugging is enabled :)

-- 
Philip
Received on 2011-02-11 14:07:48 CET

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.