Comment 12 for bug 609187

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 609187] Re: users are not warned when branching ubuntu:foo (or lp:ubuntu/foo) and the package import of foo is out of date

On Sat, 2011-05-21 at 15:08 +0000, John A Meinel wrote:
> On 5/20/2011 6:26 PM, Jelmer Vernooij wrote:
> > I've pushed a hackish implementation of a 'bzr check-udd-status' command
> > to lp:~jelmer/bzr-builddeb/check-udd-status.
> >
> > E.g.:
> >
> > gwenhwyvar:~% bzr check-udd-status gnumeric
> > UDD branch is out of date (1.9.9-1ubuntu1 < 1.10.14-1ubuntu2)
> >
> > It's pretty slow to do this using the API though:
> > BZR_PLUGINS_AT=builddeb@`pwd` BZR_PDB=1 bzr check-udd-status gnumeric 0.47s user 0.09s system 5% cpu 9.805 total
> >
> > This would make fetching a UDD branch quite a bit slower. We can
> > presumably avoid opening the actual branch like this command does, but
> > that would still mean something like an extra 5 second overhead for
> > fetching a branch.
> Getting the branch tip over http might be a fair amount faster than
> doing so over bzr+ssh if you aren't going to fetch the branch. (Since
> you avoid the ssh handshake.)

> I don't know where the slow part of your code is, though. It certainly
> could be bits like "Launchpad requires me to download all of the history
> for a package to determine the most recent version". Etc.
I'm currently opening the branch over http, and am only looking at the
tags - not at any of the actual history.

It seems like most of the overhead is in the roundtrips to Launchpad for
the API. Maxb did some work yesterday on reducing that number.

Cheers,

Jelmer