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

Re: Delta compression not so effective

From
Marius Storm-Olsen <mstormo@gmail.com>
Date
Mar 1, 2017, 23:59 UTC
Message-ID
<6a72bfd4-5032-5e40-5c6d-8b77ca5ae775@gmail.com>
In-Reply-To
<CACPiFC+=ZpHT=xh7Y8f68BcXxNYx8EFJfzqqG2ub4NL=uREu7g@mail.gmail.com>
On 3/1/2017 14:19, Martin Langhoff wrote:
Show 5 quoted lines
> On Wed, Mar 1, 2017 at 8:51 AM, Marius Storm-Olsen <mstormo@gmail.com> wrote:
>> BUT, even still, I would expect Git's delta compression to be quite effective, compared to the compression present in SVN.
>
> jar files are zipfiles. They don't delta in any useful form, and in
> fact they differ even if they contain identical binary files inside.

If you look through the initial post, you'll see that the jar in question is in fact a tool (BFG) by Roberto Tyley, which is basically git filter-branch on steroids. I used it to quickly filter out the extern/ folder, just to prove most of the original size stems from that particular folder. That's all.

The repo does not contain zip or jar files. A few images and other compressed formats (except a few 100MBs of proprietary files, which never change), but nothing unusual.

Show 6 quoted lines
>>     Commits: 32988
>>     DB (server) size: 139GB
>
> Are you certain of the on-disk storage at the SVN server? Ideally,
> you've taken the size with a low-level tool like `du -sh
> /path/to/SVNRoot`.

139GB is from 'du -sh' on the SVN server. I imported (via SubGit) directly from the (hotcopied) SVN folder on the server. So true SVN size.

> Even with no delta compression (as per Junio and Linus' discussion),
> based on past experience importing jar/wars/binaries from SVN into
> git... I'd expect git's worst case to be on-par with SVN, perhaps ~5%
> larger due to compression headers on uncompressible data.

Yes, I was expecting a Git repo <139GB, but like Linus mentioned, something must be knocking the delta search off its feet, so it bails out. Loose object -> 'hard' repack didn't show that much difference.

Thanks!
-- 
.marius
Previous: Martin Langhoff
Message 15 of 15 in “Delta compression not so effective”
  1. Marius Storm-OlsenMar 1, 2017
  2. Junio C HamanoMar 1, 2017
  3. Junio C HamanoMar 1, 2017
  4. Linus TorvaldsMar 1, 2017
  5. Marius Storm-OlsenMar 1, 2017
  6. Linus TorvaldsMar 1, 2017
  7. Martin LanghoffMar 1, 2017
  8. Marius Storm-OlsenMar 2, 2017
  9. Linus TorvaldsMar 2, 2017
  10. Marius Storm-OlsenMar 4, 2017
  11. Linus TorvaldsMar 6, 2017
  12. Marius Storm-OlsenMar 6, 2017
  13. Thomas BraunMar 7, 2017
  14. Martin LanghoffMar 1, 2017
  15. Marius Storm-OlsenMar 1, 2017

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.