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

Re: git and binary files

From
David Brown <git@davidb.org>
Date
Jan 18, 2008, 06:52 UTC
Message-ID
<20080118065201.GA4478@old.davidb.org>
In-Reply-To
<alpine.DEB.1.00.0801161634080.5260@bender.nucleusys.com>
On Wed, Jan 16, 2008 at 04:39:19PM +0200, Petko Manolov wrote:
Show 8 quoted lines
>> As an experiment, it might be worth trying to store the uncompressed
>> versions instead (git will delta _and_ compress them for you).
>
> I don't have them uncompressed.
>
> I can try to convert those files into ascii format and then save them in 
> the repository.  Since most changes are incremental git should be able to 
> generate relatively small delta, which should compress well enough.
This won't help, only make things slightly worse.

The problem is when you compress the files, as soon as there is a difference between the two files, the output of the compressor will be entirely different for the remainder of the file. Unless you changes always are at the end of the file, you will end up pretty much entire versions in the repo.

I'm using some repos that get regular 50MB tarballs checked into them. I convinced them to not compress the tarballs, and git does a fairly decent job of doing delta compression between them (although it needs quite a bit of RAM to do so).

Dave
Previous: Rogan Dawes
Message 32 of 32 in “git and binary files”
  1. Petko ManolovJan 16, 2008
  2. David SymondsJan 16, 2008
  3. Petko ManolovJan 16, 2008
  4. Johannes SchindelinJan 16, 2008
  5. Petko ManolovJan 16, 2008
  6. Johannes SchindelinJan 16, 2008
  7. Petko ManolovJan 16, 2008
  8. Wincent ColaiutaJan 16, 2008
  9. Petko ManolovJan 16, 2008
  10. Junio C HamanoJan 16, 2008
  11. Junio C HamanoJan 16, 2008
  12. Johannes SchindelinJan 16, 2008
  13. Petko ManolovJan 16, 2008
  14. Jakub NarebskiJan 16, 2008
  15. Petko ManolovJan 16, 2008
  16. Jakub NarebskiJan 16, 2008
  17. Petko ManolovJan 16, 2008
  18. Nicolas PitreJan 16, 2008
  19. Petko ManolovJan 16, 2008
  20. Nicolas PitreJan 16, 2008
  21. Petko ManolovJan 16, 2008
  22. Petko ManolovJan 16, 2008
  23. Jakub NarebskiJan 16, 2008
  24. Florian WeimerJan 16, 2008
  25. Jeff KingJan 16, 2008
  26. Petko ManolovJan 16, 2008
  27. Jeff KingJan 16, 2008
  28. Petko ManolovJan 16, 2008
  29. Jeff KingJan 16, 2008
  30. Petko ManolovJan 16, 2008
  31. Rogan DawesJan 16, 2008
  32. David BrownJan 18, 2008

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.