From: Eric Wong Date: Sat, 25 Oct 2014 05:44:26 GMT Subject: Re: [PATCH v3] git-svn: memoize _rev_list and rebuild Message-ID: <20141025054426.GA31107@dcvr.yhbt.net> In-Reply-To: <1390443319-11239-1-git-send-email-manjian2006@gmail.com> manjian2006@gmail.com wrote: > From: lin zuojian > > According to profile data, _rev_list and rebuild consume a large > portion of time. Memoize the results of _rev_list and memoize > rebuild internals to avoid subprocess invocation. Hi, I am considering reverting _rev_list memoization because it can increases memory usage a lot, which hurting fork() performance on Linux. Can you tell me if your original results are under Linux or another kernel? I may only disable _rev_list memoization under Linux and leave other OSes unaffected, too. I've merged some patches from Jakob to improve svn:mergeinfo performance along with some followup patches to reduce memory use. However memory bloat is still a problem. Currently in my "master" branch of git://bogomips.org/git-svn Eric Wong (4): git-svn: reduce check_cherry_pick cache overhead git-svn: cache only mergeinfo revisions git-svn: clear global SVN pool between get_log invocations git-svn: remove mergeinfo rev caching Jakob Stoklund Olesen (2): git-svn: only look at the new parts of svn:mergeinfo git-svn: only look at the root path for svn:mergeinfo