From: Jakub Narebski <jnareb@gmail.com>
To: Phillip Susi <psusi@cfl.rr.com>
Cc: Nicolas Pitre <nico@fluxnic.net>, git@vger.kernel.org
Subject: Re: How to unpack recent objects?
Date: Thu, 16 Dec 2010 14:18:50 -0800 (PST) [thread overview]
Message-ID: <m339r0ncai.fsf@localhost.localdomain> (raw)
In-Reply-To: <4D0A8D83.9080705@cfl.rr.com>
Phillip Susi <psusi@cfl.rr.com> writes:
> On 12/16/2010 4:19 PM, Nicolas Pitre wrote:
> > What makes you think that unpacking them will actually make the access
> > to them faster? Instead, you should consider _repacking_ them,
> > ultimately using the --aggressive parameter with the gc command, if you
> > want faster accesses.
>
> Because decompressing and undeltifying the objects in the pack file
> takes a fair amount of cpu time. It seems a waste to do this for the
> same set of objects repeatedly rather than just keeping them loose.
Loose objects are also compressed.
Besides git has some kind of delta cache, so when you are accessing a
few objects (like e.g. when doing 'git log -p' - log + diff) you don't
need to undeltify and uncompress the same objects repeatedly.
Also in practice it is IO that is bottleneck, not CPU. And having
many files is bad for filesystem cache. Originally packfiles were for
the network transfer, but it turned out that they are better also as
on-disk format.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2010-12-16 22:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-16 20:33 How to unpack recent objects? Phillip Susi
2010-12-16 20:40 ` Jonathan Nieder
2010-12-16 21:19 ` Nicolas Pitre
2010-12-16 22:06 ` Phillip Susi
2010-12-16 22:18 ` Jakub Narebski [this message]
2010-12-16 23:12 ` Nicolas Pitre
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=m339r0ncai.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=psusi@cfl.rr.com \
/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).