Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit-Lfs performance
  • From: Egor Baykov <Egor.Baykov@xxxxxxxxxx>
  • Date: Fri, 2 Jul 2021 16:16:27 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Auh2P11Vt0SXNJSb0DVFiJqlSgzPQcCd/yZkWP5kDOY=; b=bjSV6K5vrXCgFZJcZyTtZh29x+mKZY1xmfPSZ/L9Tf25ZVU0zcB7TQ6i9Hrc7osydX72qVSIY/J4BUIeu3eEdrsvBDgY4ZLtYd6Zusb+ySlSVcikDDw8AHwqH78Rv7IuJxwfdwntubvhBdcXIZavFyhD2RIU3unNonBiITyc0+PeobFVYejjr4ccT4b8tRN24C/hU3z9HNF9PoXBj0X2x12ePIOGoSe4bGSXRLnB+APc5SONjamwc+DvOTWLUXQTa3Ehuy9XNVv1mvZvIKdET9LXJINxO4uV7FBB4/wQ0hIQvFA8LxwVJU5e8+V0LeIqD5w9yyYV/4MYE5ifRP8nhw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BTECuzMzGhaKeK3AqpLJaCPSIRQbVG6yXInxuOeJ1f1DtvC7NA4SkeEivx+YVFwmmBOjO6VDnfbHa3DjT5WfFSmAFdB4fyDmWnv+LP3fVMhFgzcmf76nuE4OD6Eo9ZuTQmIuGrfO4MVJXxVh9YmJsxBlxtcm+uCkIwxvs+UX8t13BCIlcfmwAX175ufTX1gp7OT1yna+QBhK5tRnxJeYprrDp3kVUWEeybWilapTEDdDHaBrp1IfLShCoprqRTV/syHSKFdAF0u47GhpDbibJ+JWpVkmZDGfGUoZ0XdCiXqI0K1tM3//Dl/LRcATDNpZOopwH3ulzHwFIjNyI7uQEg==
  • Delivered-to: jgit-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jgit-dev/>
  • List-help: <mailto:jgit-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jgit-dev>, <mailto:jgit-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AddtzQUyDry4UmwDSbG4mq7s33Y4HQBQgGYAABG8dTA=
  • Thread-topic: [jgit-dev] JGit-Lfs performance

Christian,

 

you can see same behavior on LFS GitHub repo: git@xxxxxxxxxx:BayeNN/gsdk_lfs_test.git

 

Windows Cmd Git clones this repo for less than 2 mins

v5.12.0.202105051250-m2 EGit (JGit) – 12% after first 10 mins, then I stopped.

 

Similar from the code:

 

BuiltinLFS.register();

LfsFactory

.getInstance()

.getInstallCommand()

.call();

 

Git

.cloneRepository()

.setURI(git@xxxxxxxxxx:BayeNN/gsdk_lfs_test.git)

.setDirectory(new File("c:\\temp\\jgit"))

.call();

 

 

 

Thanks!

-Egor

 

 

 

From: Christian Halstrick <christian.halstrick@xxxxxxxxx>
Sent: Friday, July 2, 2021 2:54 AM
To: Egor Baykov <Egor.Baykov@xxxxxxxxxx>
Cc: jgit-dev@xxxxxxxxxxx
Subject: Re: [jgit-dev] JGit-Lfs performance

 

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

I guess you can't share the repo, or?

 

On Thu, Jul 1, 2021 at 9:06 PM Egor Baykov <Egor.Baykov@xxxxxxxxxx> wrote:

Hello,

 

question please on LFS (org.eclipse.jgit.lfs):

 

I’m using JGit + LFS to clone the huge LFS repo located on Bitbucket Server.

The repo size is ~3 Gb with a lot of binaries there stored as LFS files.

 

Cloning of such repo using JGit+LFS takes ~20 hours.

Cloning using Windows Git cmd (with LFS support) takes ~15 mins.

 

When I clone some non-LFS repo: the performance for Git cmd vs JGit is about the same, even for the ~1GB repo.

 

All the testing is done on Windows, Bitbucket repos.

I’m using “v5.12.0.202105051250-m2” tag to clone & build JGit repo.

 

For JGit LFS I’m using built-in LFS command:

 

       BuiltinLFS.register();

       LfsFactory

       .getInstance()

      .getInstallCommand()

       .call();

 

       Git

       .cloneRepository()

       .setURI("ssh://<>")

       .setDirectory(new File("c:\\temp\\jgit"))

       .call();

 

I will really appreciate if any ideas how I could speed up the clone(checkout) process for the LFS.

 

Few more notes please:

  • I have to use the BuiltInLFS command instead of external one due to minimize the dependencies: 
    the JGit is planned to be used in a standalone application which shall not rely on any user’s installed Git.
  • I’m using ssh connection since http does not work; Seems like a know issue:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=535814
  • I also tried to clone the LFS repo using EGit (5.12.0.202106070339-r) – same ~20 hours result

 

Thanks!

 

-Egor

_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jgit-dev


Back to the top