From: Samuel Abels <newsgroups@debain.org>
To: david@lang.hm
Cc: git@vger.kernel.org
Subject: Re: Performance impact of a large number of commits
Date: Sat, 25 Oct 2008 17:12:33 +0200 [thread overview]
Message-ID: <1224947553.7566.48.camel@localhost> (raw)
In-Reply-To: <alpine.DEB.1.10.0810242219440.20238@asgard.lang.hm>
On Fri, 2008-10-24 at 22:29 -0700, david@lang.hm wrote:
> when git stores the copies of the files it does a sha1 hash of the file
> contents and then stores the file in the directory
> .git/objects/<first two digits of the hash>/<hash>
> it would be a pretty minor change to git to have it use more directories
Ah, I see how this works. Well, I'll think of a way to cope with this (I
might patch my Git installation, or see how well it performs on an
indexed file system). If all else fails we'll have to slash the number
of commits even if this means that some files are not added to the
history.
> my concern is that spending time creating the pack files will mean that
> you don't have time to insert the new files.
>
> that being said, there may be other ways of dealing with this data rather
> than putting it into files and then adding it to the git repository.
>
> Git has a fast-import streaming format that is designed for programs to
> use that are converting repositories from other SCM systems.
I'm pretty sure that the streaming format won't do us much good, as the
files are re-created from scratch between commits.
Thanks a lot for the information, this was very helpful.
-Samuel
prev parent reply other threads:[~2008-10-25 15:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 19:02 Performance impact of a large number of commits Samuel Abels
2008-10-24 19:43 ` david
2008-10-24 19:56 ` Samuel Abels
2008-10-24 20:11 ` david
2008-10-25 5:18 ` Samuel Abels
2008-10-25 5:29 ` david
2008-10-25 15:12 ` Samuel Abels [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=1224947553.7566.48.camel@localhost \
--to=newsgroups@debain.org \
--cc=david@lang.hm \
--cc=git@vger.kernel.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).