]> source.dussan.org Git - jgit.git/commit
PackBitmapIndex/StoredBitmap: Expose size and counts 48/205448/6
authorIvan Frade <ifrade@google.com>
Fri, 10 Nov 2023 20:05:51 +0000 (12:05 -0800)
committerIvan Frade <ifrade@google.com>
Thu, 14 Dec 2023 23:42:41 +0000 (15:42 -0800)
commite25bf957387b944dac0a12fe6e6ed8b284db81bb
treeb5693dadf7ae20956b7683de54981e126dd92dac
parent52c18ae15f8fa3787f920e68791367dae2e1af2d
PackBitmapIndex/StoredBitmap: Expose size and counts

PackBitmapIndex holds a collection of StoredBitmaps. StoredBitmaps can
be either base bitmaps (ready) or an XOR over another bitmap. XOR
bitmaps are replaced with a resolved version on demand. Bitmaps
can use a significant amount of memory but we don't have detailed
visibility about it.

Add methods to PackBitmapIndex to know how many xor/bases we have and
their sizes.

Change-Id: I57aa80a1f07ddf9223eb34cfda85aab85529ea9c
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndexTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/StoredBitmapTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexRemapper.java