aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs.server
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2019-11-19 12:08:53 -0800
committerIvan Frade <ifrade@google.com>2019-11-21 09:30:19 -0800
commit989a927a5f0aa21745d560e77e9eb7c76682c117 (patch)
treea3c3d055d5ca6ddc4996ecbf1da151ceccce3c0c /org.eclipse.jgit.lfs.server
parenta0204a4727ce39f3bd1564c445065dce6cefe608 (diff)
downloadjgit-989a927a5f0aa21745d560e77e9eb7c76682c117.tar.gz
jgit-989a927a5f0aa21745d560e77e9eb7c76682c117.zip
checkNotAdvertisedWants: Be lazy converting Ref to RevCommit
The ref points to an ObjectId that then is translated into a RevCommit. This translation can be costly and with the incremental reachability check is probably not needed for most of the elements. Delay the translation from ObjectId to RevCommit to when it is needed. Use Streams, that have the laziness built-in, all the way from Ref to RevCommit. This should reduce the latency for reachability checks over big sets of references. Change-Id: I28693087321b2beff3eaa1f3d2e7840ab0eedc6d Signed-off-by: Ivan Frade <ifrade@google.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server')
0 files changed, 0 insertions, 0 deletions