git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn has a _lot_ of metadata

From
Sam Vilain <sam@vilain.net>
Date
Oct 16, 2007, 13:22 UTC
Message-ID
<4714BB21.3090300@vilain.net>
In-Reply-To
<20071016102259.GB5945@diana.vm.bytemark.co.uk>
Karl Hasselström wrote:
Show 6 quoted lines
>     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.
Previous: Karl Hasselström
Message 2 of 2 in “git-svn has a _lot_ of metadata”
  1. Karl HasselströmOct 16, 2007
  2. Sam VilainOct 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.