summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorJoshua Redstone <redstone@gmail.com>2020-01-31 13:14:42 -0600
committerMatthias Sohn <matthias.sohn@sap.com>2020-02-02 14:44:22 +0100
commit2a134e1541ff49f640061db2c3ea89ab3305c7a6 (patch)
tree92fb22adc4193d545ae714635ca9c06cb18fad06 /pom.xml
parenteaff0a2eba33c6191ef0e156c7e7e6899efe281c (diff)
downloadjgit-2a134e1541ff49f640061db2c3ea89ab3305c7a6.tar.gz
jgit-2a134e1541ff49f640061db2c3ea89ab3305c7a6.zip
AmazonS3: Speed up fetch, try recent packs first
When fetching remote objects, WalkFetchConnection searches remote packs in the order provided by WalkRemoteObjectDatabase:getPackNames. Previously, for TransportAmazonS3, the packs were in no particular order. This resulted in potential many extra calls to get pack idx files. This change modifies TransportAmazonS3 and AmazonS3 so that getPackNames returns a list sorted with the most recently modified packs first. In the case of fetching recent changes to a repo, this dramatically reduces the number of packs searched and speeds up fetch. Note: WalkRemoteObjectDatabase::getPackNames does not specify the order of the returned names. Testing: did "mvn clean install" in root dir and all tests passed. And manually constructed some S3 repos and using jgit.sh confirmed that the freshest pack was checked first. Change-Id: I3b968fee825e793be55566e28c2d69d0cbe53807 Signed-off-by: Joshua Redstone <redstone@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'pom.xml')
0 files changed, 0 insertions, 0 deletions