]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve performance of get_active_networks_info
authoryangxurong <yangxurong@huawei.com>
Tue, 11 Nov 2014 09:06:22 +0000 (17:06 +0800)
committeryangxurong <yangxurong@huawei.com>
Mon, 15 Dec 2014 08:20:21 +0000 (16:20 +0800)
commitf0894c7bf99d918c0e67ab25498d53e990c09aff
treecfeb6f4a95d54b646797bcf44283e927cfb43aac
parent817956e6ea725a42e2a1695e6992f68ffeac2d72
Improve performance of get_active_networks_info

RPC 'get_active_networks_info' currently uses nested loop to fill
the network structure with subnet and port info. Speed up this
operation by using itertools.groupby.

Change-Id: If765dd8f2f8010b79eb168179a64dccf940e9cbb
Closes-Bug: #1390356
neutron/api/rpc/handlers/dhcp_rpc.py
neutron/tests/unit/test_dhcp_rpc.py