RE: [PATCH] Reduce memory usage of svn log -v
From: D.J. Heap <djheap_at_dhiprovo.com>
Date: 2003-05-15 17:31:18 CEST
Here is the revised patch following Greg Stein's comments:
Log:
Reduce the memory usage of 'verbose' log commands.
* subversion/libsvn_repos/log.c
(detect_changed): Allocate and return the CHANGED hash set
(svn_repos_get_logs): Removed allocation of CHANGED_PATHS --
-----Original Message-----
On Wed, May 14, 2003 at 08:37:33PM -0600, D.J. Heap wrote:
> >|svn_pool_clear (subpool);|? But if turns out you must add
Right.
Looking at that function, it would be fixed if we follow standard design
* things allocated outside a loop are placed into the pool passed to the
* anything within a loop should use a subpool (sometimes called an
Thus: place the svn_fs_paths_changed() can apr_has_first() results into
No scratchpool is needed -- the subpool should have filled that role
Cheers,
p.s. separate change here: the 'item' variable declaration would
-- Greg Stein, http://www.lyra.org/ ********************************************************************** 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 **********************************************************************
---------------------------------------------------------------------
|
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.