On Sun, Feb 14, 2010 at 11:16 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
That would be ideal, but is more work than disabling imports for large
files by default (for example), which would be easy. In any case, my
solution at work was to say "if it hurts, don't do that" and it seems
to have worked out okay for now.
Well, I'm thinking of things like textual database dumps, such as
those produced by mysqldump. It would be nice to be able to diff
those efficiently, even if they're several gigs in size. bup's
hierarchical chunking allows this.
Note that bup's rolling-checksum-based hierarchical chunking is not
the same as the chunking that was discussed in that thread, and it
resolves most of the problems. Unless I'm missing something.
Also note that bup just uses normal tree objects (for better or worse)
instead of introducing a new object type.
Yes, sorry to have implied otherwise. I was just comparing the
performance advantage of the delta expansion cache (which should be a
lot) with that of mmaping packfiles (which probably isn't much since
the packfile data is typically needed in expanded form anyway).
Sorry, I didn't hunt down the code, but I ran into it while
experimenting before. The rules are something like:
- git-prune only prunes unpacked objects
- git-repack claims to be willing to explode unreachable objects back
into loose objects with -A, but I'm not quite sure if its definition
of "unreachable" is the same as mine. And I'm not sure rewriting a
pack with -A makes the old pack reliably unreachable according to -d.
It's possible I was just being dense.
- there seems to be no documented situation in which you can ever
delete unused objects from a pack without using repack -a or -A, which
can be amazingly slow if your packs are huge. (Ideally you'd only
repack the particular packs that you want to shrink.) For example, my
bup repo is currently 200 GB.
Anyway, I didn't have much luck when playing with it earlier, but
didn't investigate since I assumed it's just a workflow that nobody
much cares about. Which I think is a reasonable position for git
developers to take anyway.
Have fun,
Avery
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html