Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How can google gerrit project to be clone so fast?
How can google gerrit project to be clone so fast? [message #1844445] Tue, 14 September 2021 09:33 Go to next message
Y C is currently offline Y CFriend
Messages: 2
Registered: September 2021
Junior Member
Here is my post on stackoverflow in my attachment

Now i know gerrit gc will create bitmap to drastically descrase couting objects time.
However i still get a really long time "finding sources" phase than google git project.
Is there anything i miss?
  • Attachment: 1.png
    (Size: 51.63KB, Downloaded 61 times)
Re: How can google gerrit project to be clone so fast? [message #1844459 is a reply to message #1844445] Tue, 14 September 2021 13:23 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I guess they use bitmap indexes which speed up the counting phase of fetch commands.

https://kscherer.github.io/git/2015/05/15/git-and-bitmaps
https://git-scm.com/docs/bitmap-format
https://git.eclipse.org/r/c/jgit/jgit/+/7939/
Re: How can google gerrit project to be clone so fast? [message #1844495 is a reply to message #1844459] Wed, 15 September 2021 08:40 Go to previous message
Y C is currently offline Y CFriend
Messages: 2
Registered: September 2021
Junior Member
You're right.
But i already figure it out and did "gerrit gc --aggressive" to my host project.
The "Couting Objects" phase is indeed faster than before. minutes to less than 1 seconds.

However it's still really strange.
FIrst. i will stuck at "cloning into" phase for 24 seconds. where google only spends 3 seconds.
Second, google spend less than 1 second at "Finding Sources" phase. but i still need to spend 1 minute at "Finding Sources" phase. Google's "finding sources" shows only 153/153 where my project shows millions.

Is there anyone who can tell me what is "Finding sources"?

[Updated on: Wed, 15 September 2021 14:37]

Report message to a moderator

Previous Topic:JGit DFS repository with HEAD pointing to main instead of master
Next Topic:performance improvement to get stats
Goto Forum:
  


Current Time: Fri Apr 19 01:48:30 GMT 2024

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

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

Back to the top