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

Re: svn commit: r23489 - trunk/subversion/mod_dav_svn/reports

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2007-02-24 00:50:59 CET

On Fri, Feb 23, 2007 at 03:35:51PM -0800, dlr@tigris.org wrote:
> Improve memory allocation for the expected case.
>
> * subversion/mod_dav_svn/reports/log.c
> (dav_svn__log_report): Pre-allocate one slot in the "paths" array.
>
> - = apr_array_make(resource->pool, 0, sizeof(const char *));
> + = apr_array_make(resource->pool, 1, sizeof(const char *));
>

Not that it matters, but APR already does this internally (I guess more
for convenience than performance, though).

Regards,
Malcolm

  • application/pgp-signature attachment: stored
Received on Sat Feb 24 00:51:15 2007

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.