performance problems starting up nova process due to regex code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Alex Xu |
Bug Description
We noticed that nova process startup seems to take a long time. It looks like one major culprit is the regex code at https:/
Sean K Mooney highlighted one possible culprit:
<sean-k-mooney> i dont really like this https:/
<sean-k-mooney> def _get_all_chars():
<sean-k-mooney> for i in range(0xFFFF):
<sean-k-mooney> yield six.unichr(i)
<sean-k-mooney> so that is got to loop 65535 times
<sean-k-mooney> *going too
<sean-k-mooney> and we call the function 17 times
<sean-k-mooney> so that 1.1 million callse to re.escape every time we load that module
Changed in nova: | |
assignee: | nobody → sean mooney (sean-k-mooney) |
Changed in nova: | |
assignee: | sean mooney (sean-k-mooney) → Alex Xu (xuhj) |
Fix proposed to branch: master /review. openstack. org/599071
Review: https:/