提交 e05a9c65 authored 作者: Frederic Bastien's avatar Frederic Bastien

Remove a useless check in a fct that end up being a bottle neck when there is too many clients.

上级 c158857e
......@@ -314,7 +314,9 @@ class FunctionGraph(utils.object2):
"""
for entry in clients_to_remove:
r.clients.remove(entry)
assert entry not in r.clients # an op,i pair should be unique
# entry should be uniq in r. No need to assert it as it is
# already asserted in __add_client__.
# assert entry not in r.clients
if r.clients:
return False
if not prune:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论