locking: Use frozenset instead of utils.UniqueSequence
authorMichael Hanselmann <hansmi@google.com>
Mon, 19 Nov 2012 21:09:47 +0000 (22:09 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 21 Nov 2012 01:44:24 +0000 (02:44 +0100)
commita13d34a6acf9691b387c64a70da999ce84b32649
tree0e4a4352bcd40decd939aaf502ed998063739f0b
parent0ef4d576dc2fc077b01d727f829ebcc616eb15c9
locking: Use frozenset instead of utils.UniqueSequence

In this case “frozenset” is good enough as the result's order doesn't
matter--it is the input to “sorted” (“utils.UniqueSequence” preserves
the order). “frozenset” is ca. 25% faster for this use-case.

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