From: Nicolas Pitre <nico@cam.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Sam Vilain <sam@vilain.net>, Nick Edelen <sirnot@gmail.com>,
Michael J Gruber <git@drmicha.warpmail.net>,
Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
"Shawn O. Pearce" <spearce@spearce.org>,
Andreas Ericsson <exon@op5.se>,
Christian Couder <christian@couder.net>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH 0/5] Suggested for PU: revision caching system to significantly speed up packing/walking
Date: Fri, 07 Aug 2009 10:18:14 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.0908071010580.16073@xanadu.home> (raw)
In-Reply-To: <alpine.DEB.1.00.0908070806350.8306@pacific.mpi-cbg.de>
On Fri, 7 Aug 2009, Johannes Schindelin wrote:
> Hi,
>
> On Fri, 7 Aug 2009, Nicolas Pitre wrote:
>
> > On Fri, 7 Aug 2009, Sam Vilain wrote:
> >
> > > Johannes Schindelin wrote:
> > > >> the short answer is that cache slices are totally independant of
> > > >> pack files.
> > > >>
> > > >
> > > > My idea with that was that you already have a SHA-1 map in the pack
> > > > index, and if all you want to be able to accelerate the revision
> > > > walker, you'd probably need something that adds yet another mapping,
> > > > from commit to parents and tree, and from tree to sub-tree and blob
> > > > (so you can avoid unpacking commit and tree objects).
> > > >
> > >
> > > Tying indexes together like that is not a good idea in the database
> > > world. Especially as in this case as Nick mentions, the domain is
> > > subtly different (ie pack vs dag). Unfortunately you just can't try to
> > > pretend that they will always be the same; you can't force a full
> > > repack on every ref change!
> >
> > Right. And the rev cache must work even if the repository is not
> > packed.
>
> Umm, why? AFAICT the principal purpose of the rev cache is to help work
> loads on, say, www.kernel.org.
So what?
Speeding up rev-list with a rev cache is completely orthogonal to
whether the repository is packed or not. It is like having a "git diff"
result cache: no one would think of stuffing that in the pack index.
If we want to improve on the repository packing format, that must be
doable without bothering with an independent concept such as a rev
cache.
> I am unlikely to notice the improvements in my regular "git log" calls
> that only show a couple of pages before I quit the pager.
Indeed. But what is your point again?
Nicolas
next prev parent reply other threads:[~2009-08-07 14:19 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 9:55 [PATCH 0/5] Suggested for PU: revision caching system to significantly speed up packing/walking Nick Edelen
2009-08-06 14:48 ` Johannes Schindelin
2009-08-06 14:58 ` Michael J Gruber
2009-08-06 17:39 ` Nick Edelen
2009-08-06 19:06 ` Johannes Schindelin
2009-08-06 20:01 ` Nick Edelen
2009-08-06 20:30 ` Nick Edelen
2009-08-06 20:32 ` Shawn O. Pearce
2009-08-06 23:35 ` A Large Angry SCM
2009-08-06 23:37 ` Shawn O. Pearce
2009-08-06 23:43 ` A Large Angry SCM
2009-08-07 0:15 ` Nick Edelen
2009-08-07 6:05 ` Johannes Schindelin
2009-08-07 4:42 ` Nicolas Pitre
2009-08-07 2:47 ` Sam Vilain
2009-08-07 4:35 ` Nicolas Pitre
2009-08-07 6:08 ` Johannes Schindelin
2009-08-07 14:18 ` Nicolas Pitre [this message]
2009-08-08 15:18 ` Johannes Schindelin
2009-08-08 16:07 ` Junio C Hamano
2009-08-08 23:54 ` Sam Vilain
2009-08-09 2:37 ` Nicolas Pitre
2009-08-09 13:42 ` Nick Edelen
2009-08-07 6:12 ` Johannes Schindelin
2009-08-07 15:00 ` Nicolas Pitre
2009-08-07 22:02 ` Nick Edelen
2009-08-07 22:48 ` Junio C Hamano
2009-08-07 22:53 ` Nick Edelen
2009-08-08 3:11 ` Junio C Hamano
2009-08-08 7:27 ` Nick Edelen
2009-08-08 7:30 ` Jeff King
2009-08-08 7:40 ` Nick Edelen
2009-08-08 2:50 ` Jeff King
2009-08-08 18:57 ` Junio C Hamano
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=alpine.LFD.2.00.0908071010580.16073@xanadu.home \
--to=nico@cam.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=christian@couder.net \
--cc=exon@op5.se \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=sam@vilain.net \
--cc=sirnot@gmail.com \
--cc=spearce@spearce.org \
/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).