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.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/20/2011 6:26 PM, Jelmer Vernooij wrote: AT=builddeb@ `pwd` BZR_PDB=1 bzr check-udd-status gnumeric 0.47s user 0.09s system 5% cpu 9.805 total
> 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_
>
> 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.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk3 X1WIACgkQJdeBCY SNAAMHzgCfSHigu 7Nk65n7wRiDibED d0iU h7Fu3loIaKpL8mk Z1
pyAAn284nBeyY58
=aNdb
-----END PGP SIGNATURE-----