← Back to team overview

launchpad-dev team mailing list archive

Re: API issue moving branches

 

Wow, thats nice - it looks like you've got a bunch of things we can
apply to API's to make them fast. Consider me comforted!

Is there a flag I can set to get a trace of the requests being made?

Versions of code in use:
ii  python-launchpadlib
1.6.0-0ubuntu1                                        Launchpad web
services client library
ii  python-lazr.restfulclient
0.9.11-1ubuntu1                                       client for
lazr.restful-based web services

(that is, Lucid)

And the hydrazine code is lp:hydrazine trunk; I got that previous
figure by doing 'echo q | feed-pqm bzr', which was cheating a little:
that accesses attributes on the first merge proposal found. With a
patch to break:
=== modified file 'feed-pqm'
--- feed-pqm    2010-05-20 21:17:35 +0000
+++ feed-pqm    2010-05-20 21:40:05 +0000
@@ -153,6 +153,7 @@
     all_mps = list(project.getMergeProposals(status=find_status))
     while len(all_mps):
         mp = all_mps[i]
+       break
         show_mp(mp)

         while True:

its a fairer assessment of 'getting the relevant proposals'.

Now, perhaps yesterday was simply a bad day for lp, because today:
real    0m5.143s
user    0m0.300s
sys     0m0.040s

Which is great (its about 1/3 the time of the equivalent LP web page rendering).

I say perhaps a bad day for LP, because I haven't installed or changed
any packages, or changed the hydrazine code, or changed my network
config.

-Rob



References