group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #03786
[Bug 1580534] Re: Signature verification is too slow
** Also affects: simplestreams (Ubuntu Xenial)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1580534
Title:
Signature verification is too slow
Status in simplestreams:
New
Status in simplestreams package in Ubuntu:
New
Status in simplestreams source package in Xenial:
New
Bug description:
When running against http://cloud-
images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:download.sjson,
read_signed() in simplestreams/utils.py seems to take minutes (402
seconds in my instrumented timing) running 100% CPU. At the time of my
test, download.sjson is 451737 bytes in 1870 lines.
This makes a uvtool sync virtually unusable on Xenial.
The culprit is the constant += of a string as it is read in. This is
inefficient in Python as each += results in a new string that has to
be allocated. Keeping the lines in a list and joining them at the end
reduces the time to 0.127 seconds.
Merge proposal to follow. I'm filing this bug to track a Xenial SRU.
To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/1580534/+subscriptions