<p>This is consistent with my experience. Bzr has some issues with large (medium?) projects which some other vcs systems have solved. I believe the core devs will solve this. Meanwhile I find that breaking projects into modules...like bzr and its pluggins...does help a lot. Good luck!</p>
<div class="gmail_quote">On May 26, 2011 5:37 AM, "Kape" <<a href="mailto:erlend.sobec@gmail.com">erlend.sobec@gmail.com</a>> wrote:<br type="attribution">> <br>> Yes, it's bound to a remote repository on a remote server, not local network. <br>
> And no, I'm not on dialup but on cable. The slowdown doesn't seem to be<br>> from uploading to the remote server. I was looking at the network traffic<br>> and it was only being used in bursts every 5 minutes or so. When it was<br>
> using the network it was relatively fast, 800kB/s or so.<br>> <br>> It did happen that it was the 10th commit, so that explains the repacking. <br>> I'm also using bzr over sftp so that further explains the slow down. The<br>
> remote repo is actually hosted on Hostmonster, so I think my local computer<br>> is probably faster anyway. I set it up this way because I'm working on the<br>> same code with someone else and it's simpler to have a single repo that is<br>
> accessible by both of us remotely. I don't think I can use bzr+ssh with<br>> Hostmonster but now that I've passed the 10th commit, I have another 90<br>> commits until another 2 hour long commit. I can live with that as long as<br>
> it's not every single time. I did the first commit, which took long as<br>> expected, but all other commits were done by the other person. So when I<br>> did one commit, which happened to be the 10th, I was afraid they would all<br>
> take this long.<br>> <br>> Anyway, thanks for your help.<br>> <br>> <br>> John Arbash Meinel wrote:<br>>> <br>>> -----BEGIN PGP SIGNED MESSAGE-----<br>>> Hash: SHA1<br>>> <br>>> On 05/26/2011 08:44 AM, Martin Pool wrote:<br>
>>> Can you tell us more about the configuration you have here? When you<br>>>> say "the repo is bound": bound to what? A remote repository? What<br>>>> does "bzr info" in the local repository show?<br>
>>> <br>>> <br>>> 'bzr info' should give enough information, but how remote is the remote<br>>> repository? (local network, 600ms latency with dialup internet speeds?,<br>>> etc)<br>
>> <br>>> Repacking happens to maintain efficiency. Any given content is only<br>>> touched on an exponential backoff. So the first commit is repacked at<br>>> commit 10, then 100, then 1000, then 10000, etc.<br>
>> <br>>> It happens that your project is currently very new, and commit 1 has<br>>> *lots* of data. If you had the history of the project, the 1GB was built<br>>> up over time, and thus we wouldn't be touching all 1GB very often (you'd<br>
>> be in then only-once-every 10,000 commits part of the cycle, rather than<br>>> the once-in-every 10 commits.)<br>>> <br>>> <br>>> As for remote connections, if you are using bzr over something like<br>
>> sftp, we have no choice but to do the work locally. (There is no process<br>>> on the remote machine that knows how to repack the repository.) Which<br>>> means downloading the remote content to determine exactly what is there,<br>
>> recompressing it, and then uploading it again. If you have 1GB of<br>>> content and a slow link, that can take a while.<br>>> <br>>> If you can use "bzr+ssh://" to access the remote content, then repacking<br>
>> will be done by the remote bzr process. It may still take a while, but<br>>> it will be bound by the remote machine's cpu rather than your network<br>>> link.<br>>> <br>>> It would be nice if we had a better way to avoid repacking the initial<br>
>> content. But at the moment we don't really have any knobs to tweak to do<br>>> so.<br>>> <br>>> John<br>>> =:-><br>>> -----BEGIN PGP SIGNATURE-----<br>>> Version: GnuPG v1.4.11 (GNU/Linux)<br>
>> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>>> <br>>> iEYEARECAAYFAk3eDJwACgkQJdeBCYSNAANSSACdEJJ7VtJBSYZ389QVQcNoz0XZ<br>>> SL4An2ZgHwAXAiUoJDEaC51aswUCe5lC<br>
>> =gd2E<br>>> -----END PGP SIGNATURE-----<br>>> <br>>> <br>>> <br>> <br>> -- <br>> View this message in context: <a href="http://old.nabble.com/Commit-extremely-slow-tp31689617p31707533.html">http://old.nabble.com/Commit-extremely-slow-tp31689617p31707533.html</a><br>
> Sent from the Bazaar - General Discussion mailing list archive at Nabble.com.<br>> <br>> <br></div>