public PackBitmapIndexBuilder(List<ObjectToPack> byName) {
super(new ObjectIdOwnerMap<StoredBitmap>());
byOffset = sortByOffset(byName);
int sizeInWords = Math.max(byOffset.length / 64, 4);
commits = new EWAHCompressedBitmap(sizeInWords);
trees = new EWAHCompressedBitmap(sizeInWords);
blobs = new EWAHCompressedBitmap(sizeInWords);
tags = new EWAHCompressedBitmap(sizeInWords);
for (int i = 0; i < byOffset.length; i++) {
int type = byOffset[i].getType();
switch (type) {
case Constants.OBJ_COMMIT:
commits.set(i);