{"id":144,"date":"2007-07-02T22:12:18","date_gmt":"2007-07-02T20:12:18","guid":{"rendered":"http:\/\/web.glandium.org\/blog\/?p=144"},"modified":"2010-01-27T08:52:32","modified_gmt":"2010-01-27T07:52:32","slug":"svk-vs-git-for-xulrunner-maintenance","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=144","title":{"rendered":"svk vs. git for xulrunner maintenance"},"content":{"rendered":"<p>I've been using svk for xulrunner maintenance since the first test packages. And I've been thinking about switching to git for a while now. I did some testing in march, which led to my post about <a href=\"\/blog\/?p=120\">diffing<\/a>. I went a bit further today by actually trying to convert my svk repository. And I got both interesting and surprising results.<\/p>\n<p>The repository is (only) about 250 revisions in svk, and includes 15 upstream releases (or CVS pulls). I had to reorganize the svk repository so that git-svnimport could do its work properly.<\/p>\n<p>[ Note: these tests have been done on a 5 years old laptop ]<\/p>\n<p>The first surprise is the time it took for the conversion : almost half an hour. Dumping (<code>svnadmin dump<\/code>) and reloading (<code>svnadmin load<\/code>) the svk repository takes a bit more than 3 minutes, in comparison... I guess <code>git-svnimport<\/code> is very ineffective.<\/p>\n<p>The second surprise is that the svk repository is actually almost twice as small as the git equivalent: 116MB for svk vs. 224MB for git.<\/p>\n<p>On the other hand, git is amazingly fast. One of the most common things I do on this repository is a diff between the upstream branch and the trunk. I create the .diff.gz file I give pbuilder this way. It's much quicker than doing a real dpkg-source, especially considering pbuilder does one itself.<\/p>\n<p>After dropping caches (<code>echo 3 > \/proc\/vm\/sys\/drop_caches<\/code>), such a diff takes about 50 seconds with svk and... a little more 2 seconds with git. Without dropping caches, it gets down to 38 seconds with svk and... 0.05s with git. That is pretty damn fast !<\/p>\n<p><b>Update:<\/b> after a <code>git repack -d<\/code>, the git repository is down to 61MB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been using svk for xulrunner maintenance since the first test packages. And I&#8217;ve been thinking about switching to git for a while now. I did some testing in march, which led to my post about diffing. I went a bit further today by actually trying to convert my svk repository. And I got both [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[23],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-xulrunner","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":1,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}