needless looping in legacy pipeline code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Low
|
gordon chung |
Bug Description
when publishing samples, the pipeline will sort the samples by name and also group them by name... this is legacy code which was previously used so we could effectively filter samples. the location of filtering samples has moved to an earlier stage so the groupby isn't needed anymore. furthermore, the publisher should not be worrying about sorting what it publishes, it should just push stuff out as quick as possible.
removing this should at worse do nothing. at best, it removes additional looping and thus improves performance.
code in question:
def publish_
for meter_name, samples in itertools.groupby(
ref: https:/
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/140772
Review: https:/