From: lin zuojian Date: Thu, 23 Jan 2014 02:15:19 +0000 (+0800) Subject: git-svn: memoize _rev_list and rebuild X-Git-Tag: v1.9-rc1~27^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ab0bcec9873f1fcef6c4b8825cc9e762c636ca9e?hp=ab0bcec9873f1fcef6c4b8825cc9e762c636ca9e git-svn: memoize _rev_list and rebuild 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. When importing 15152 revisions on a LAN, time improved from 10 hours to 3-4 hours. Signed-off-by: lin zuojian Signed-off-by: Eric Wong ---