From: Jeff King <peff@peff.net>
To: Nicolas Pitre <nico@fluxnic.net>
Cc: John <john@puckerupgames.com>, git@vger.kernel.org
Subject: Re: serious performance issues with images, audio files, and other "non-code" data
Date: Tue, 18 May 2010 15:41:05 -0400 [thread overview]
Message-ID: <20100518194105.GA4723@coredump.intra.peff.net> (raw)
In-Reply-To: <alpine.LFD.2.00.1005181528550.12758@xanadu.home>
On Tue, May 18, 2010 at 03:33:58PM -0400, Nicolas Pitre wrote:
> > It will have to write the whole 200M packfile out each time, though.
>
> No. gc will only create a pack with new loose objects by default.
> Only if the number of packs grow too large will it combine them into one
> pack.
I think that is only "gc --auto". With regular gc:
$ git init
$ echo content >file && git add file && git commit -m one
$ git gc
Counting objects: 3, done.
Writing objects: 100% (3/3), done.
Total 3 (delta 0), reused 0 (delta 0)
$ du -a .git/objects/pack
4 .git/objects/pack/pack-5f6fe4b14529d73f51d7c8efa69306edd35f2302.idx
4 .git/objects/pack/pack-5f6fe4b14529d73f51d7c8efa69306edd35f2302.pack
12 .git/objects/pack
$ echo content >>file && git commit -a -m two
$ git gc
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), done.
Total 6 (delta 0), reused 3 (delta 0)
$ du -a .git/objects/pack
4 .git/objects/pack/pack-ecf41a1c120eb911f50fdd2c159e94d5832974f7.idx
4 .git/objects/pack/pack-ecf41a1c120eb911f50fdd2c159e94d5832974f7.pack
12 .git/objects/pack
So six objects written in the second gc, and obviously a brand new
single pack.
-Peff
next prev parent reply other threads:[~2010-05-18 19:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 18:53 serious performance issues with images, audio files, and other "non-code" data John
2010-05-12 19:15 ` Jakub Narebski
2010-05-14 5:10 ` Jeff King
2010-05-14 12:54 ` John
2010-05-14 17:26 ` Dirk Süsserott
2010-05-17 23:16 ` Jeff King
2010-05-17 23:33 ` Sverre Rabbelier
2010-05-18 19:07 ` Jeff King
2010-05-18 19:10 ` Sverre Rabbelier
2010-05-18 19:27 ` Jeff King
2010-05-18 19:37 ` Nicolas Pitre
2010-05-18 18:50 ` John
2010-05-18 18:54 ` Sverre Rabbelier
2010-05-18 19:19 ` Jeff King
2010-05-18 19:33 ` Nicolas Pitre
2010-05-18 19:41 ` Jeff King [this message]
2010-05-18 19:59 ` Nicolas Pitre
2010-05-24 0:21 ` John
2010-05-24 1:16 ` Junio C Hamano
2010-05-24 7:01 ` John
2010-05-25 6:33 ` Jeff King
2010-05-25 7:28 ` Michael J Gruber
2010-05-25 16:12 ` John
2010-05-25 17:18 ` Nicolas Pitre
2010-05-25 17:47 ` John
2010-05-24 5:39 ` Jeff King
2010-05-24 6:44 ` John
2010-05-24 6:45 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100518194105.GA4723@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=john@puckerupgames.com \
--cc=nico@fluxnic.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).