*Disclaimer*
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.
Log:
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.
www.mimesweeper.com
**********************************************************************
---------------------------------------------------------------------
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