diff options
author | Yunjie Li <yunjieli@google.com> | 2020-04-23 15:12:15 -0700 |
---|---|---|
committer | Yunjie Li <yunjieli@google.com> | 2020-05-12 17:32:15 -0700 |
commit | 3aee92478c2cbc67cd921533437b824e43ed9798 (patch) | |
tree | 915463c8d66e9e695b3b14a25aa278340b36aba7 /org.eclipse.jgit | |
parent | e250482c7af5e1750b241683a1afde35ed020fee (diff) | |
download | jgit-3aee92478c2cbc67cd921533437b824e43ed9798.tar.gz jgit-3aee92478c2cbc67cd921533437b824e43ed9798.zip |
PackBitmapIndex: Not buffer inflated bitmap in BasePackBitmapIndex
Currently we're buffering the inflated bitmap entry in BasePackBitmapIndex
to optimize running time. However, this will use lots of memory during
the construction of the pack bitmap index file which may cause failure of
garbage collection.
The running time didn't increase significantly, if there's any increase,
after removing the buffering here. The report about usage of time/memory
will come in the next commit.
Change-Id: I874503ecc85714acab7ca62a6a7968c2dc0b56b3
Signed-off-by: Yunjie Li <yunjieli@google.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java index c9bb167f02..74b46bcee6 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java @@ -72,7 +72,6 @@ abstract class BasePackBitmapIndex extends PackBitmapIndex { if (r instanceof EWAHCompressedBitmap) { out = out.xor((EWAHCompressedBitmap) r); out.trim(); - bitmapContainer = out; return out; } xb = (XorCompressedBitmap) r; |