]> source.dussan.org Git - jgit.git/commit
PackBitmapIndex: Not buffer inflated bitmap during bitmap creation. 82/165082/4
authorYunjie Li <yunjieli@google.com>
Wed, 17 Jun 2020 18:58:18 +0000 (11:58 -0700)
committerYunjie Li <yunjieli@google.com>
Thu, 18 Jun 2020 19:36:42 +0000 (12:36 -0700)
commitb94758441dd6f9fecc4946d21382aa03f6485c07
treebb1c6c6dd37489cc6abf9a57d3251dfca70c4c63
parentc3db32d51ac8ca8d58d88a265b03d1e64b14e82f
PackBitmapIndex: Not buffer inflated bitmap during bitmap creation.

Currently we're buffering the inflated bitmap entry in
BasePackBitmapIndex to optimize running time. However, this will use
lots of memory during the creation of the pack bitmap index file.

And change 161456, which rewrote the entire getBitmap method, increased
the fetch latency significantly.

This commit introduces getBitmapWithoutCaching method which is used in
the pack bitmap index file creation only and aims to save memory during
garbage collection and not increase fetch latency.

Change-Id: I7b982c9d4e38f5f6193eaa03894e894ba992b33b
Signed-off-by: Yunjie Li <yunjieli@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexRemapper.java