Skip to content

Commit

Permalink
Check membership in set instead of list, in scale *way* more performant.
Browse files Browse the repository at this point in the history
Change-Id: I23dc40fa954e8d82be9b460affb57ff44673d6ee
Partial-Bug: 1589014
(cherry picked from commit 667a3cf)
  • Loading branch information
Hampapur Ajay authored and Sachin Bansal committed Aug 4, 2016
1 parent faa0ad2 commit 28ee8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def reinit(self):
BgpRouterST.reinit()
LogicalRouterST.reinit()
vn_list = list(VirtualNetworkST.list_vnc_obj())
vn_id_list = [vn.uuid for vn in vn_list]
vn_id_list = set([vn.uuid for vn in vn_list])
ri_dict = {}
service_ri_dict = {}
ri_deleted = {}
Expand Down

0 comments on commit 28ee8bb

Please sign in to comment.