]> source.dussan.org Git - jgit.git/commit
LFS: Dramatically improve checkout speed with SSH authentication 63/112863/30
authorMarkus Duft <markus.duft@ssi-schaefer.com>
Tue, 5 Dec 2017 09:46:43 +0000 (10:46 +0100)
committerMarkus Duft <markus.duft@ssi-schaefer.com>
Thu, 1 Mar 2018 12:29:17 +0000 (13:29 +0100)
commitea2f7e93c7ac5a38a1dd1400df9db64d5c4bbe7d
tree963a3b9d660ccda6856aa0495c5ab5188473a82c
parentc0bb992845e6ba5df9f420739fe9075ed20e9ee2
LFS: Dramatically improve checkout speed with SSH authentication

SSH Authentication is quite expensive (~120ms on localhost against
Gerrit with LFS plugin). The SSH authentication typically also sends a
validity time of the returned token, which allows to re-use it for a
certain time, avoiding the expensive authentication on every download
request. This improves checkout times by large factors depending on the
LFS object amount/sizes.

Also make sure that all instances of Gson used by LFS are configured in
the same way.

Change-Id: I422c94c37021b4322789b3829fa0185e25d683f2
Signed-off-by: Markus Duft <markus.duft@ssi-schaefer.com>
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPrePushHook.java
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Protocol.java
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/SmudgeFilter.java
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java