From d988540c8e100736056a5cd82f0893b25170ce50 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Wed, 12 Aug 2015 22:10:35 -0700 Subject: Do not retain commit body during bitmap generation The bitmap preparer only needs commit graph topology; it does not use the message body. Allow the RevWalk to free the body after the commit has been parsed to save memory. Change-Id: I97d4a440c9fc313873fd224bd05b9d9e3dc575db --- .../org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java index fca90636da..756d4b0005 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java @@ -114,6 +114,7 @@ class PackWriterBitmapPreparer { IOException { pm.beginTask(JGitText.get().selectingCommits, ProgressMonitor.UNKNOWN); RevWalk rw = new RevWalk(reader); + rw.setRetainBody(false); WalkResult result = findPaths(rw, expectedNumCommits); pm.endTask(); -- cgit v1.2.3