From: Sam Vilain <sam@vilain.net>
To: "Karl Hasselström" <kha@treskal.com>
Cc: Eric Wong <normalperson@yhbt.net>, git list <git@vger.kernel.org>
Subject: Re: git-svn has a _lot_ of metadata
Date: Wed, 17 Oct 2007 02:22:41 +1300 [thread overview]
Message-ID: <4714BB21.3090300@vilain.net> (raw)
In-Reply-To: <20071016102259.GB5945@diana.vm.bytemark.co.uk>
Karl Hasselström wrote:
> This could probably be stored _much_ more efficiently. Just
> gzipping it with the standard options shrinks it by between a
> factor of 4 (for one of the busiest branches) and 300 (for a tag,
> which is written just once). But I understand that we need quick
> random access here?
>
I understand that patches to enhance git-svn to allow it to store its
metadata via DBI (as git-cvsserver currently does) would be more than
welcome.
I made an example for an old version of git-svn, which stored the
information in a DBM. However using a set of tables would be much less
of a hack.
http://git.catalyst.net.nz/gw?p=git.git;a=commitdiff;h=dbe3fa060
Treat that change as a reference only; it just shows what places in the
code would need to be touched to support a different storage format. A
mergeable patch to fix this would probably need to support both methods,
detecting which is available or in use.
Sam.
prev parent reply other threads:[~2007-10-16 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 10:22 git-svn has a _lot_ of metadata Karl Hasselström
2007-10-16 13:22 ` Sam Vilain [this message]
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=4714BB21.3090300@vilain.net \
--to=sam@vilain.net \
--cc=git@vger.kernel.org \
--cc=kha@treskal.com \
--cc=normalperson@yhbt.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).