提交 f46ddb95 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Reyhane Askari

Small speed up by removing duplicate computation recently introduced.

上级 6a27355d
...@@ -952,8 +952,6 @@ def general_toposort(outputs, deps, debug_print=False, ...@@ -952,8 +952,6 @@ def general_toposort(outputs, deps, debug_print=False,
for client in _clients.get(node, []): for client in _clients.get(node, []):
d = [a for a in deps_cache[client] if a is not node] d = [a for a in deps_cache[client] if a is not node]
deps_cache[client] = d deps_cache[client] = d
deps_cache[client] = [a for a in deps_cache[client]
if a is not node]
if not d: if not d:
sources.append(client) sources.append(client)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论