Re: Unresolved issues #2 (shallow clone again)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Sunday, May 7, 2006 - 12:56 am

On Sun, May 07, 2006 at 06:08:03PM +1200, Martin Langhoff wrote:


A few hard facts (using Linus' linux-2.6 tree):
  - original packsize: 120996 kilobytes
  - unpacked: 233338 objects, 1417476 kilobytes
    This is an 11.7:1 compression ratio (of course, much of this is
    wasted space from the 4k block size in the filesystem)
  - There were 87915 total blob objects, of which 19321 were in the
    current tree. I removed all non-current blobs to produce a "shallow"
    tree.
  - The shallow tree unpacked: 164744 objects, 761960 kilobytes
    IOW, about half of the unpacked disk usage was old blobs.
  - Shallow commit/tree/tag objects packed (using 1.3.1
    git-pack-objects):
      Total 164744, written 164744 (delta 92322), reused 0 (delta 0)
      size: 108088
    The compression ratio here is only 7.0:1
  - Total savings by going shallow: 10.7%

So basically, trees and commits DON'T compress as well as historical
blobs (potentially because git-pack-objects isn't currently optimized
for this -- I haven't checked). As a result, we're saving only 10% by
going shallow instead of a potential 50%.

-Peff
-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Unresolved issues #2 (shallow clone again), Jakub Narebski, (Fri May 5, 8:18 am)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Fri May 5, 8:59 am)
Re: Unresolved issues #2 (shallow clone again), Martin Langhoff, (Fri May 5, 11:23 pm)
Re: Unresolved issues #2 (shallow clone again), Junio C Hamano, (Sat May 6, 12:10 am)
Re: Unresolved issues #2 (shallow clone again), Martin Langhoff, (Sat May 6, 11:08 pm)
Re: Unresolved issues #2 (shallow clone again), Jeff King, (Sun May 7, 12:56 am)
Re: Unresolved issues #2 (shallow clone again), Sergey Vlasov, (Sun May 7, 1:01 am)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Sun May 7, 8:27 am)
Re: Unresolved issues #2 (shallow clone again), Martin Langhoff, (Sun May 7, 4:27 pm)
Re: Unresolved issues #2 (shallow clone again), Junio C Hamano, (Sun May 7, 4:35 pm)
Re: Unresolved issues #2 (shallow clone again), Martin Langhoff, (Sun May 7, 4:44 pm)
Re: Unresolved issues #2 (shallow clone again), Theodore Tso, (Sun May 7, 5:33 pm)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Sun May 7, 5:50 pm)
Re: Unresolved issues #2 (shallow clone again), Theodore Tso, (Sun May 7, 6:26 pm)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Sun May 7, 7:04 pm)
Re: Unresolved issues #2 (shallow clone again), Theodore Tso, (Sun May 7, 7:24 pm)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Sun May 7, 7:42 pm)
Re: Unresolved issues #2 (shallow clone again), Jeff King, (Sun May 7, 9:24 pm)
Re: Unresolved issues #2 (shallow clone again), Linus Torvalds, (Mon May 8, 8:32 am)