{"thread":{"id":"20999","subject":"very slow \"git gc --aggressive\" in GIT-1.6.4.4","startedAt":"2009-09-18T19:23:59Z","lastAt":"2009-09-18T19:56:56Z","messageCount":2,"participants":["Leo Razoumov","Michael Andreen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"123502","messageId":"ee2a733e0909181223j1ffc99edkdb3700adb37fa147@mail.gmail.com","threadId":"20999","inReplyTo":null,"subject":"very slow \"git gc --aggressive\" in GIT-1.6.4.4","fromName":"Leo Razoumov","fromEmail":"slonik.az@gmail.com","sentAt":"2009-09-18T19:23:59Z","receivedAt":"2009-09-18T19:23:59Z","isPatch":false,"sender":{"key":"slonik.az@gmail.com","avatar":null},"body":"I noticed that \"git gc --agressive\" takes 5 times longer with\ngit-1.6.4.4 than with git-1.6.2.5.\n\nBelow are benchmarks on my Linux Ubuntu-9.04 laptop (Core2 Duo 2.54GHz).\nAs a test repo I use a mirror of the official GIT upstream.\n\nGIT-v1.6.4.4\n-----------------\ngit.upstream> time git gc --agressive\nCounting objects: 105217, done.\nDelta compression using up to 2 threads.\nCompressing objects: 100% (103507/103507), done.\nWriting objects: 100% (105217/105217), done.\nTotal 105217 (delta 77228), reused 0 (delta 0)\ngit gc --aggressive  168.31s user 0.58s system 180% cpu 1:33.52 total\n\nGIT-1.6.2.5.LR1\n---------------------\ngit.upstream> time git gc --aggressive\nCounting objects: 105217, done.\nDelta compression using 2 threads.\nCompressing objects: 100% (103507/103507), done.\nWriting objects: 100% (105217/105217), done.\nTotal 105217 (delta 76235), reused 0 (delta 0)\ngit gc --aggressive  30.97s user 0.48s system 141% cpu 22.177 total\n==========================================\n\n168 seconds for git-1.6.4.4 versus 22 seconds for git-1.6.2.5.\n\nWhat gives?\n\n--Leo--\n"},{"id":"123504","messageId":"200909182156.56587.harv@ruin.nu","threadId":"20999","inReplyTo":"ee2a733e0909181223j1ffc99edkdb3700adb37fa147@mail.gmail.com","subject":"Re: very slow \"git gc --aggressive\" in GIT-1.6.4.4","fromName":"Michael Andreen","fromEmail":"harv@ruin.nu","sentAt":"2009-09-18T19:56:56Z","receivedAt":"2009-09-18T19:56:56Z","isPatch":false,"sender":{"key":"harv@ruin.nu","avatar":null},"body":"On Friday 18 September 2009 21:23:59 Leo Razoumov wrote:\n> I noticed that \"git gc --agressive\" takes 5 times longer with\n> git-1.6.4.4 than with git-1.6.2.5.\n> \n> Below are benchmarks on my Linux Ubuntu-9.04 laptop (Core2 Duo 2.54GHz).\n> As a test repo I use a mirror of the official GIT upstream.\n\ngit-1.6.3 and later changed the settings for --aggressive to window=250 and \ndepth=250, which produces a tighter pack. The earlier setting wasn't really \naggressive.\n\n/Michael\n"}]}