private void singleThreadDeltaSearch(ProgressMonitor monitor, ObjectToPack[] list, int cnt) throws IOException { long totalWeight = 0; for (int i = 0; i < cnt; i++) { ObjectToPack o = list[i]; totalWeight += DeltaTask.getAdjustedWeight(o); } long bytesPerUnit = 1; while (DeltaTask.MAX_METER <= (totalWeight / bytesPerUnit)) bytesPerUnit <<= 10; int cost = (int) (totalWeight / bytesPerUnit); if (totalWeight % bytesPerUnit != 0) cost++; beginPhase(PackingPhase.COMPRESSING, monitor, cost); new DeltaWindow(config, new DeltaCache(config), reader, monitor, bytesPerUnit, list, 0, cnt).search(); endPhase(monitor); }
endPhase(pm); return true;
walker, bitmapIndex, countingMonitor); findObjectsToPackUsingBitmaps(bitmapWalker, want, have); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; stats.bitmapIndexMisses = bitmapWalker.getCountOfBitmapIndexMisses(); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; stats.bitmapIndexMisses = -1;
endPhase(writeMonitor);
sizeQueue.release(); endPhase(monitor); stats.timeSearchingForSizes = System.currentTimeMillis() - sizingStart;
searchForReuse(monitor, objectsLists[OBJ_BLOB]); endPhase(monitor); stats.timeSearchingForReuse = System.currentTimeMillis() - start;
throw fail; endPhase(monitor);
endPhase(monitor);
private void singleThreadDeltaSearch(ProgressMonitor monitor, ObjectToPack[] list, int cnt) throws IOException { long totalWeight = 0; for (int i = 0; i < cnt; i++) { ObjectToPack o = list[i]; totalWeight += DeltaTask.getAdjustedWeight(o); } long bytesPerUnit = 1; while (DeltaTask.MAX_METER <= (totalWeight / bytesPerUnit)) bytesPerUnit <<= 10; int cost = (int) (totalWeight / bytesPerUnit); if (totalWeight % bytesPerUnit != 0) cost++; beginPhase(PackingPhase.COMPRESSING, monitor, cost); new DeltaWindow(config, new DeltaCache(config), reader, monitor, bytesPerUnit, list, 0, cnt).search(); endPhase(monitor); }
private void singleThreadDeltaSearch(ProgressMonitor monitor, ObjectToPack[] list, int cnt) throws IOException { long totalWeight = 0; for (int i = 0; i < cnt; i++) { ObjectToPack o = list[i]; totalWeight += DeltaTask.getAdjustedWeight(o); } long bytesPerUnit = 1; while (DeltaTask.MAX_METER <= (totalWeight / bytesPerUnit)) bytesPerUnit <<= 10; int cost = (int) (totalWeight / bytesPerUnit); if (totalWeight % bytesPerUnit != 0) cost++; beginPhase(PackingPhase.COMPRESSING, monitor, cost); new DeltaWindow(config, new DeltaCache(config), reader, monitor, bytesPerUnit, list, 0, cnt).search(); endPhase(monitor); }
endPhase(pm); return true;
endPhase(writeMonitor);
walker, bitmapIndex, countingMonitor); findObjectsToPackUsingBitmaps(bitmapWalker, want, have); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; stats.bitmapIndexMisses = bitmapWalker.getCountOfBitmapIndexMisses(); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; stats.bitmapIndexMisses = -1;
endPhase(pm); return true;
endPhase(writeMonitor);
sizeQueue.release(); endPhase(monitor); stats.timeSearchingForSizes = System.currentTimeMillis() - sizingStart;
sizeQueue.release(); endPhase(monitor); stats.timeSearchingForSizes = System.currentTimeMillis() - sizingStart;
searchForReuse(monitor, objectsLists[OBJ_BLOB]); endPhase(monitor); stats.timeSearchingForReuse = System.currentTimeMillis() - start;
searchForReuse(monitor, objectsLists[OBJ_BLOB]); endPhase(monitor); stats.timeSearchingForReuse = System.currentTimeMillis() - start;