[Xfce4-commits] <thunar-vcs-plugin:master> Small memory footprint improvement for svn add.
Stefan Sperling
noreply at xfce.org
Thu Sep 6 23:48:07 CEST 2012
Updating branch refs/heads/master
to 14b5ec3a0fcee3e9a791820a87b75009cbe9aa1c (commit)
from 6b074e85a4312bdc75af69aec2b370f12e6f786d (commit)
commit 14b5ec3a0fcee3e9a791820a87b75009cbe9aa1c
Author: Stefan Sperling <stsp at stsp.name>
Date: Thu Sep 6 19:18:21 2012 +0200
Small memory footprint improvement for svn add.
While adding files, clear the subpool during each iteration to
make memory footprint independent of the number of iterations.
tvp-svn-helper/tsh-add.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tvp-svn-helper/tsh-add.c b/tvp-svn-helper/tsh-add.c
index f751e99..e92139a 100644
--- a/tvp-svn-helper/tsh-add.c
+++ b/tvp-svn-helper/tsh-add.c
@@ -68,6 +68,7 @@ static gpointer add_thread (gpointer user_data)
TshFileInfo *info = files->data;
if (!(info->flags & TSH_FILE_INFO_INDIRECT))
{
+ svn_pool_clear(subpool);
if ((err = svn_client_add4(info->path, (info->flags&TSH_FILE_INFO_RECURSIVE)?svn_depth_infinity:svn_depth_empty, FALSE, FALSE, FALSE, ctx, subpool)))
{
error_str = tsh_strerror(err);
More information about the Xfce4-commits
mailing list