]> source.dussan.org Git - jgit.git/commit
Use 'reused' bitmap to filter walk during bitmap selection 97/59597/4
authorJonathan Nieder <jrn@google.com>
Tue, 3 Nov 2015 19:24:02 +0000 (11:24 -0800)
committerJonathan Nieder <jrn@google.com>
Thu, 5 Nov 2015 20:27:28 +0000 (12:27 -0800)
commit2a2c2f3373f0a3e76546e7c44ec3afa96d5e6e6f
treeef71246d23db260cc57bb74564fdfc3c71229ae4
parentb28091e45014bdadc641713da6d5949f0131545e
Use 'reused' bitmap to filter walk during bitmap selection

When building fullBitmap in order to determine which ancestor chain to
add this commit to, we were excluding the ancestors of reusedCommits
using markUninteresting.  This use of markUninteresting is a bit
wasteful because we already have a bitmap indicating exactly which
commits should be excluded (which can save some walking).  Use it.

A separate commit will remove the now-redundant markUninteresting
call.

No behavior change intended (except for performance improvement).

Change-Id: I1112641852d72aa05c9a8bd08a552c70342ccedb
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java