Improve network query algorithm
authorMichael Hanselmann <hansmi@google.com>
Thu, 20 Dec 2012 11:01:24 +0000 (12:01 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 21 Dec 2012 09:29:28 +0000 (10:29 +0100)
commitf2212a5d950990d57d6840369f1befe28870ba07
treeb632f4a2c7d90fa86a63208e29f4f38f01696f84
parent070b780d13c56e87d22478c0f87ae39f9c8ae8f9
Improve network query algorithm

Similar to commit 572a277. Directly iterate over “self.wanted” instead
of iterating through all networks and checking if they're wanted.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py