Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Git Clone Wizard Very Slow Vs. Git Command Line(Very Slow Cloning Using Git Clone Wizard)
Git Clone Wizard Very Slow Vs. Git Command Line [message #1854229] Mon, 08 August 2022 14:19 Go to next message
Mike K is currently offline Mike KFriend
Messages: 2
Registered: August 2022
Junior Member
Hello,

We are seeing very slow cloning times when using Git Clone Wizard versus Git command line.

For example, to clone one of our repos takes about 11 minutes using Git command line and about 137 minutes using Git command line.

There appears to be no difference in the cloned repos using the different methods.

It appears that Git Clone Wizard is performing different steps to clone versus Git command line.

The steps for Git command line can be seen in the attachment.

index.php/fa/42384/0/

It's not clear what steps are being performed using Git Clone Wizard. However, I do see it's performing "Checking out files:" which is what is causing the very long clone time.

What can be done to get Git Clone Wizard to perform as well as Git command line?

Thanks.

[Updated on: Mon, 08 August 2022 16:58]

Report message to a moderator

Re: Git Clone Wizard Very Slow Vs. Git Command Line [message #1854238 is a reply to message #1854229] Mon, 08 August 2022 17:48 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 497
Registered: August 2016
Senior Member
It looks like you use LFS, and have 3069 LFS files. C git has delayed smudge filtering for such files: the LFS filter can return immediately with status "delayed", and the file is skipped for the initial checkout. LFS then continues in the background to download the (large) file. Once all normal files have been checked out, git then re-tries to get these "delayed" files. This essentially parallelizes downloading LFS files.

See "Long-Running Filter Process" in the C git documentation.

JGit has no such mechanism, its built-in LFS smudge filter is synchronous and downloads one LFS file after the other during check-out.

I suspect that this accounts for most of this time difference.

[Updated on: Mon, 08 August 2022 18:05]

Report message to a moderator

Re: Git Clone Wizard Very Slow Vs. Git Command Line [message #1854242 is a reply to message #1854238] Mon, 08 August 2022 19:13 Go to previous messageGo to next message
Mike K is currently offline Mike KFriend
Messages: 2
Registered: August 2022
Junior Member
Thanks Thomas. Yes, that makes sense.

Is there a way to turn off LFS files to see if that's really the problem?

Are there plans in place to improve the JGIT mechanism of downloading LFS files?
Re: Git Clone Wizard Very Slow Vs. Git Command Line [message #1854244 is a reply to message #1854242] Tue, 09 August 2022 06:29 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1213
Registered: July 2009
Senior Member
You can turn off LFS support by commenting out LFS options in your global git config ~/.gitconfig

I am not aware of anybody working on improving downloading of LFS files.
You may consider to contribute improvements. See the contributor guide at
https://wiki.eclipse.org/EGit/Contributor_Guide#Contributing_Patches

[Updated on: Tue, 09 August 2022 06:29]

Report message to a moderator

Previous Topic:Suddenly getting "No more authentication methods available" with ssh auth to git repo
Next Topic:Need JGit help
Goto Forum:
  


Current Time: Mon Oct 03 21:35:46 GMT 2022

Powered by FUDForum. Page generated in 0.01765 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top