aboutsummaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorSam Vilain <sam@vilain.net>2009-12-20 00:55:13 +1300
committerEric Wong <normalperson@yhbt.net>2009-12-21 02:32:48 -0800
commit7d944c3399c4145293d599e1ddc76d1ac0c1e118 (patch)
tree4850db3279150a4225b6d93c423c3f726aedee7d /notes.c
parent1d144aa25edbb4dcda88abbaef8f336108b8d788 (diff)
downloadgit-7d944c3399c4145293d599e1ddc76d1ac0c1e118.tar.gz
git-7d944c3399c4145293d599e1ddc76d1ac0c1e118.tar.xz
git-svn: memoize conversion of SVN merge ticket info to git commit ranges
Each time the svn mergeinfo ticket changes, we look it up in the rev_map; when there are a lot of merged branches, this will result in many repeated lookups of the same information for subsequent commits. Arrange the slow part of the function so that it may be memoized, and memoize it. The more expensive revision walking operation can be memoized separately. [ew: changed "next" to "return" for function exit] Signed-off-by: Sam Vilain <sam@vilain.net> Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'notes.c')
0 files changed, 0 insertions, 0 deletions