{"thread":{"id":"12808","subject":"hg-to-git performance on big repos","startedAt":"2008-03-22T13:34:22Z","lastAt":"2008-03-22T14:27:58Z","messageCount":2,"participants":["Fedor V. Sergeev","Theodore Tso"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"72657","messageId":"20080322162618.K47359@geo.geo.loc","threadId":"12808","inReplyTo":null,"subject":"hg-to-git performance on big repos","fromName":"Fedor V. Sergeev","fromEmail":"theodor@geo.phys.spbu.ru","sentAt":"2008-03-22T13:34:22Z","receivedAt":"2008-03-22T13:34:22Z","isPatch":false,"sender":{"key":"theodor@geo.phys.spbu.ru","avatar":null},"body":"Folks,\n\nI'm trying to convert a relatively big Mercurial repo (70K commits) into Git using\ncontrib/hg-to-git.\nIt initially goes fine but starts to slow down nearly exponentially as the\nnumber of converted changesets goes up.\n\ngit-fast-import seems to just hang around, while all the work (100% cpu)\nis spent in that python thing. It does not eat up memory, pstack looks\nfine, but after some 10K commits it just crawls.\n\nIt did not finish in 2 days and after that machine got a power down :(\n\nCan anybody tell me is this normal or what?\n\nthanks in advance,\n  Fedor.\nP.S. Yeah, if that does matter I'm doing it on OpenSolaris ;)\n"},{"id":"72667","messageId":"20080322142758.GT7991@mit.edu","threadId":"12808","inReplyTo":"20080322162618.K47359@geo.geo.loc","subject":"Re: hg-to-git performance on big repos","fromName":"Theodore Tso","fromEmail":"tytso@mit.edu","sentAt":"2008-03-22T14:27:58Z","receivedAt":"2008-03-22T14:27:58Z","isPatch":false,"sender":{"key":"tytso@mit.edu","avatar":"https://avatars.githubusercontent.com/u/51416?v=4"},"body":"On Sat, Mar 22, 2008 at 04:34:22PM +0300, Fedor V. Sergeev wrote:\n> Folks,\n> \n> I'm trying to convert a relatively big Mercurial repo (70K commits)\n> into Git using contrib/hg-to-git.  It initially goes fine but starts\n> to slow down nearly exponentially as the number of converted\n> changesets goes up.\n> \n> git-fast-import seems to just hang around, while all the work (100% cpu)\n> is spent in that python thing. It does not eat up memory, pstack looks\n> fine, but after some 10K commits it just crawls.\n\nI don't know if it will be better, but at the time when I needed to\nconvert e2fsprogs, I liked the results of hg-fast-export, found at:\n\n        url = git://repo.or.cz/fast-export.git\n\nYou might hg-fast-import and see if it does any better for your repo.\n\nDoes it have a large number of branches or tags, by any chance?\n\n     \t       \t     \t       \t\t   \t - Ted\n"}]}