findall in novaclient/base.py is inefficient
Bug #1202179 reported by
Christian Berendt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
Joe Gordon |
Bug Description
As mentioned in the comments ("This isn't very efficient: it loads the entire list then filters on the Python side.") findall (and so also find) in novaclient/base.py isn't very efficient. When calling "nova show HOSTNAME" on a tenant holding a lot of instances (> 500) the run time is too long. I wrote a simple patch for findall() and hope that it solves the issue without destroying anything else.
Changed in python-novaclient: | |
assignee: | nobody → Christian Berendt (berendt) |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Changed in python-novaclient: | |
milestone: | none → 2.20.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/37487
Review: https:/