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

[PATCH] Reduce memory usage of svn log -v

From: D.J. Heap <djheap_at_dhiprovo.com>
Date: 2003-05-15 03:16:24 CEST

I'm not an expert on APR and pools, but I think I have a fair
understanding and the following patch significantly reduces the memory
usage of doing a svn log -v on a revision where about 30,880 files were
imported. Before the patch, it would crash after chewing through about
1.5GB of memory and running out. After the patch, it completes and uses
around 3 to 5MB or so.

If the patch can be simplified or should be done another way please feel
free to do it or comment and I'll try to do it.

Tests completed successfully for me.


Reduce the memory usage of 'verbose' log commands.

* subversion/libsvn_repos/log.c
  (detect_changed): Use a scratch pool for the svn_fs_copied_from
  call and clear it each iteration.

This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu May 15 03:17:29 2003

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.