Comment 12 for bug 404047

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 404047] Re: bzr update takes ages over FTP

On Fri, 2009-07-24 at 18:37 +0000, John A Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ernst wrote:
> > Well, it seemed bzr-gtk was causing some troubles. Still, bzr update is very, very slow (it is running for more than 20 minutes, I think). See the log file. Is this caused by the new format 2a? The repository is accesed over a ftp connection, that could be related?
> > For sure, with the 1.14 format the update was much, much faster.
> >
> > ** Attachment added: "bzrlog2.txt"
> > http://launchpadlibrarian.net/29488667/bzrlog2.txt
> >
>
> So it is 100% related to the fact that we are going over FTP, which doesn't
> allow us to do a "partial download". So instead every time we need XX bytes
> from the file, we download the whole content, extract those bytes and then
> throw it away.

I think this is exacerbated by the currently open bugs in pulling from
2a formats - we make many many times as many readv requests as we used
to; and while FTP does do some ugly stuff when doing readv at all, it
should be tolerable once those performance bugs are fixed.

-Rob