Public bug reported:
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.
** Affects: simplestreams
Importance: Undecided
Status: New
** Affects: simplestreams (Ubuntu)
Importance: Undecided
Status: New
** Also affects: simplestreams
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1580534
Title:
Signature verification is too slow
To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/1580534/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs