Merge "Bitmap builder: actually compress EWAH bitmaps in memory"
This commit is contained in:
commit
349b0af754
|
@ -115,6 +115,10 @@ public PackBitmapIndexBuilder(List<ObjectToPack> byName) {
|
|||
JGitText.get().badObjectType, String.valueOf(type)));
|
||||
}
|
||||
}
|
||||
commits.trim();
|
||||
trees.trim();
|
||||
blobs.trim();
|
||||
tags.trim();
|
||||
}
|
||||
|
||||
private ObjectToPack[] sortByOffset(List<ObjectToPack> entries) {
|
||||
|
@ -168,6 +172,7 @@ public void addBitmap(AnyObjectId objectId, Bitmap bitmap, int flags) {
|
|||
*/
|
||||
public void addBitmap(
|
||||
AnyObjectId objectId, EWAHCompressedBitmap bitmap, int flags) {
|
||||
bitmap.trim();
|
||||
StoredBitmap result = new StoredBitmap(objectId, bitmap, null, flags);
|
||||
getBitmaps().add(result);
|
||||
byAddOrder.add(result);
|
||||
|
|
Loading…
Reference in New Issue