@Override public void walkAdviceEnd() { endPrefetch(); }
@Override public void walkAdviceEnd() { endPrefetch(); }
@Override public void release() { recentChunks.clear(); endPrefetch(); InflaterCache.release(inflater); inflater = null; super.release(); }
@Override public void walkAdviceBeginCommits(RevWalk rw, Collection<RevCommit> roots) throws IOException { endPrefetch(); // Don't assign the prefetcher right away. Delay until its // configured as push might invoke our own methods that may // try to call back into the active prefetcher. // Prefetcher p = prefetch(OBJ_COMMIT, readerOptions.getWalkCommitsPrefetchRatio()); p.push(this, roots); prefetcher = p; }
@Override public void release() { recentChunks.clear(); endPrefetch(); InflaterCache.release(inflater); inflater = null; super.release(); }
@Override public void walkAdviceBeginCommits(RevWalk rw, Collection<RevCommit> roots) throws IOException { endPrefetch(); // Don't assign the prefetcher right away. Delay until its // configured as push might invoke our own methods that may // try to call back into the active prefetcher. // Prefetcher p = prefetch(OBJ_COMMIT, readerOptions.getWalkCommitsPrefetchRatio()); p.push(this, roots); prefetcher = p; }
@SuppressWarnings("unchecked") public void writeObjects(PackOutputStream out, List<ObjectToPack> objects) throws IOException { prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio()); try { List itr = objects; new ObjectWriter(this, prefetcher).plan(itr); for (ObjectToPack otp : objects) out.writeObject(otp); } finally { endPrefetch(); } }
@SuppressWarnings("unchecked") public void writeObjects(PackOutputStream out, List<ObjectToPack> objects) throws IOException { prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio()); try { List itr = objects; new ObjectWriter(this, prefetcher).plan(itr); for (ObjectToPack otp : objects) out.writeObject(otp); } finally { endPrefetch(); } }
@Override public void walkAdviceBeginTrees(ObjectWalk ow, RevCommit min, RevCommit max) throws IOException { endPrefetch(); // Don't assign the prefetcher right away. Delay until its // configured as push might invoke our own methods that may // try to call back into the active prefetcher. // Prefetcher p = prefetch(OBJ_TREE, readerOptions.getWalkTreesPrefetchRatio()); p.push(this, min.getTree(), max.getTree()); prefetcher = p; }
@Override public void walkAdviceBeginTrees(ObjectWalk ow, RevCommit min, RevCommit max) throws IOException { endPrefetch(); // Don't assign the prefetcher right away. Delay until its // configured as push might invoke our own methods that may // try to call back into the active prefetcher. // Prefetcher p = prefetch(OBJ_TREE, readerOptions.getWalkTreesPrefetchRatio()); p.push(this, min.getTree(), max.getTree()); prefetcher = p; }