Getting a snap builds record is slow

Bug #1928943 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

The follow example is taking 2.3s on my hirsute desktop

'''
#!/usr/bin/python3
import time
from launchpadlib.launchpad import Launchpad

launchpad = Launchpad.login_with('bug', 'production', version='devel')

snapobj = launchpad.load('https://api.launchpad.net/devel/~desktop-snappers/+snap/eog')
before = time.time ()
builds = snapobj.builds[:7]
print('got the builds in %.3f seconds' % (time.time()-before))
'''

Reading the webpage using urllib and doing some hackish parsing gives the same results in less than a second, ideally the launchpad api wouldn't be that much slower

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.