git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tracking binary files
@ 2009-02-19  3:16 bill lam
  2009-02-19  3:52 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: bill lam @ 2009-02-19  3:16 UTC (permalink / raw)
  To: git

I would like to use git to track some database files of sizes from 1MB
to 50MB.  I want to know does git compress them for storage or not.
If so, what will be the expected compression ratio.  Those files
normally compressed to 25% of original size using zip.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩312 王維  渭城曲
    渭城朝雨浥輕塵  客舍青青柳色新  勸君更盡一杯酒  西出陽關無故人

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tracking binary files
  2009-02-19  3:16 tracking binary files bill lam
@ 2009-02-19  3:52 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2009-02-19  3:52 UTC (permalink / raw)
  To: git

On Thu, Feb 19, 2009 at 11:16:02AM +0800, bill lam wrote:

> I would like to use git to track some database files of sizes from 1MB
> to 50MB.  I want to know does git compress them for storage or not.

Yes, git will compress them via zlib.

> If so, what will be the expected compression ratio.  Those files
> normally compressed to 25% of original size using zip.

Then I would expect the same ratio, since I believe zip and zlib both
use the "deflate" algorithm.

Note, however, that git will also do delta compression between versions.
So storing N versions of a file should be no _worse_ than zipping and
keeping those N versions. But if the database files have small enough
changes from version to version (which depends on the database format,
and how much the on-disk structure changes for each update) then it will
compress even more.

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-19  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19  3:16 tracking binary files bill lam
2009-02-19  3:52 ` Jeff King

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).