git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/3] Teach builtin-clone to pack refs
@ 2008-03-22  1:10 Johan Herland
  2008-03-22  1:12 ` [RFC/PATCH 1/3] Move pack_refs() and friends into libgit Johan Herland
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Johan Herland @ 2008-03-22  1:10 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

The following series builds on top of Barkalow's existing builtin-clone work, available in the "builtin-clone" branch at:
	git://iabervon.org/~barkalow/git.git

This patch series teaches builtin-clone to create packed refs. Creating packed refs directly in clone (instead of creating loose refs and have the next "git gc" (re)pack them), makes cloning considerably faster on repos with many refs. In a test repo with 11000 refs (1000 branches, 10000 tags) I get the following numbers (Core 2 Quad, 4GB RAM running Gentoo Linux):

- Current "next": ~24.8 seconds
- Barkalow's "builtin-clone" branch: 1.47 seconds
- "builtin-clone" plus this series: 0.31 seconds

Although most of the speedup from current "next" is achieved by the builtin-clone work, there is still a considerable additional improvement from writing all refs to a single file instead of writing one file per ref. I expect the performance improvement to be much bigger on platforms with slower filesystem (aka. Windows).

A side-effect of this series is that the cloned refs will not get reflog entries. I don't know how important these "clone: from $URL" entries are to people; I, for one, wouldn't miss them at all.


Have fun! :)

...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-04-14  8:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-22  1:10 [RFC/PATCH 0/3] Teach builtin-clone to pack refs Johan Herland
2008-03-22  1:12 ` [RFC/PATCH 1/3] Move pack_refs() and friends into libgit Johan Herland
2008-03-22  1:13 ` [RFC/PATCH 2/3] Prepare testsuite for a "git clone" that packs refs Johan Herland
2008-04-14  6:10   ` Daniel Barkalow
2008-04-14  8:00     ` Johan Herland
2008-04-14  8:02       ` [PATCH 1/4] Incorporate fetched packs in future object traversal Johan Herland
2008-04-14  8:02       ` [PATCH 2/4] Move pack_refs() and friends into libgit Johan Herland
2008-04-14  8:03       ` [PATCH 3/4] Prepare testsuite for a "git clone" that packs refs Johan Herland
2008-04-14  8:04       ` [PATCH 4/4] Teach "git clone" to pack refs Johan Herland
2008-03-22  1:13 ` [PATCH 3/3] " Johan Herland
2008-03-22  1:31   ` Daniel Barkalow
2008-03-23  0:45 ` [RFC/PATCH 0/3] Teach builtin-clone " Junio C Hamano
2008-03-23  9:49   ` Johan Herland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).