{"id":272,"date":"2010-07-20T02:26:14","date_gmt":"2010-07-20T02:26:14","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=272"},"modified":"2010-07-20T02:26:14","modified_gmt":"2010-07-20T02:26:14","slug":"using-git-with-large-files","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/progamming\/using-git-with-large-files\/","title":{"rendered":"Using git with large files"},"content":{"rendered":"<p>I&#8217;m using git to keep snapshots of large files. These are outputs of long runs of tools, that would take a long time to re-construct. Using git has the benefit of true version control on the input design files, and an archive of the large, time-consuming outputs.<\/p>\n<p>The idea here, however, is to save time, not disk space. I&#8217;ve found that when I check in, git runs for a long time&#8211;likely trying to compress the data. It&#8217;s unlikely that the large files can be compressed very much (the input-to-output process is a bit chaotic). So, I want it to try less with finding deltas, etc.<\/p>\n<p>The two options that do that are:<\/p>\n<p><code><br \/>\ngit config &#8211;add pack.window = 3  # default is 10<br \/>\n<\/code><br \/>\nand<br \/>\n<code><br \/>\ngit config &#8211;add pack.depth = 3   # default is 50<br \/>\n<\/code><\/p>\n<p>The first says not to look at more than 3 &#8220;adjacent&#8221; (close in type, size, and name) objects for candidates of a delta. The second option says not to look at more than 3 previous versions for a delta. Basically, if you do a lot of branching and merging, the second one is of advantage. However, in my case, the development is pretty linear, so the best delta for any object is the one I checked in previously (not 50 back).\n<\/p>\n<div class='wp_likes' id='wp_likes_post-272'><a class='like' href=\"javascript:wp_likes.like(272);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(272);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(272);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using git to keep snapshots of large files. These are outputs of long runs of tools, that would take a long time to re-construct. Using git has the benefit of true version control on the input design files, and an archive of the large, time-consuming outputs. The idea here, however, is to save time, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[48],"tags":[104,25,103,102],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-progamming","tag-delta","tag-git","tag-large-files","tag-pack"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":3,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/272\/revisions\/275"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}