very poor perfomance with PKI tokens
Bug #1526686 reported by
Bernhard M. Wiedemann
This bug affects 2 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-keystoneclient |
Fix Released
|
Medium
|
Bernhard M. Wiedemann | ||
Bug Description
bug 1404402 simplified the code by using python's textwrap library
but that library is geared toward processing natural text
and performs very poorly on strings of chars without spaces, because then it has O(n^2) complexity
http://
comparison of speed:
time python -c "import textwrap; textwrap.
real 0m11.627s
user 0m11.620s
sys 0m0.012s
time python -S -c "x='x'*16000; result=[x[n:n + 64] for n in range(0, len(x), 64)]"
real 0m0.010s
user 0m0.008s
sys 0m0.004s
typical sizes for PKI tokens varied between 4000 and 16000 in our testing.
devstack uses uuid-tokens by default so does not hit this issue.
| Changed in python-keystoneclient: | |
| assignee: | nobody → Bernhard M. Wiedemann (ubuntubmw) |
| status: | New → In Progress |
To post a comment you must log in.

Yeah, but PKI tokens have security bug and should not be used: https:/ /bugs.launchpad .net/keystone/ +bug/1490804 .