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>
Please register or sign in to comment