Reviewed: https://review.openstack.org/252355 Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=fde0bf77d6a89ee84e62461bc0d4c2cdfd809c48 Submitter: Jenkins Branch: master
commit fde0bf77d6a89ee84e62461bc0d4c2cdfd809c48 Author: Bernhard M. Wiedemann <email address hidden> Date: Wed Dec 2 12:47:33 2015 +0100
Replace textwrap with fast standard code
This improves on commit 4350c176048b8d159d08b82b915e9544ac9dee6f
We found a major performance regression in keystoneclient when using PKI tokens, related to http://bugs.python.org/issue25870
It can be tested with time python -c "import textwrap; textwrap.wrap('x'*9000, 64)"
which has a complexity of O(n*n) because it uses certain regexps in python versions before 3.5.
Closes-Bug: #1526686 Related-Bug: #1404402
Change-Id: Ibc81907c4d9db2c09fff41ccf21345fbdb19202d
Reviewed: https:/ /review. openstack. org/252355 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=fde0bf77d6a 89ee84e62461bc0 d4c2cdfd809c48
Committed: https:/
Submitter: Jenkins
Branch: master
commit fde0bf77d6a89ee 84e62461bc0d4c2 cdfd809c48
Author: Bernhard M. Wiedemann <email address hidden>
Date: Wed Dec 2 12:47:33 2015 +0100
Replace textwrap with fast standard code
This improves on commit 4350c176048b8d1 59d08b82b915e95 44ac9dee6f
We found a major performance regression in keystoneclient bugs.python. org/issue25870
when using PKI tokens, related to http://
It can be tested with wrap('x' *9000, 64)"
time python -c "import textwrap; textwrap.
which has a complexity of O(n*n)
because it uses certain regexps in python versions before 3.5.
Closes-Bug: #1526686
Related-Bug: #1404402
Change-Id: Ibc81907c4d9db2 c09fff41ccf2134 5fbdb19202d