提交 5e0cc2b7 authored 作者: Frederic Bastien's avatar Frederic Bastien

Use the big structure when it is there to prevent investigating the graph.

上级 e747bbf7
...@@ -395,6 +395,16 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa ...@@ -395,6 +395,16 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
fgraph.destroyers = get_destroyers_of fgraph.destroyers = get_destroyers_of
def has_destroyers(protected_list): def has_destroyers(protected_list):
if not self.stale_droot:
droot, _, root_destroyer = self.refresh_droot_impact()
for protected_var in protected_list:
try:
root_destroyer[droot[protected_var]]
except AttributeError:
pass
else:
return True
return False
def recursive_destroys_finder(protected_var): def recursive_destroys_finder(protected_var):
# protected_var is the idx'th input of app. # protected_var is the idx'th input of app.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论