ref: ce35b436ed2a8317bd02e931de03cb5ab356ded5
parent: 34ff5fc4cecc782f909c86084b6b4a1fa71cbd43
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 09:29:41 EDT 2012
faster get_dependencies on Script
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -2056,10 +2056,13 @@
return commands
def get_dependencies(self):
+ if self.dependencies != None:
+ return self.dependencies
dependencies = []
for command in self.commands:
deps = command.get_dependencies()
dependencies.extend(deps)
+ self.dependencies = dependencies
return dependencies
def to_asm(self):