diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-04 14:19:00 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-04 14:19:00 -0700 |
commit | 5d34069298cf26ecc4e78779a77a7491f8feafe6 (patch) | |
tree | 0a9f39b1f7f34ab16a6f9ed68e28db0160e91178 | |
parent | 55db51c497309174ed857bceedd2268b860b8d49 (diff) |
optimize transitive closure a tiny bit more
-rw-r--r-- | tools/eliminator/eliminator.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/eliminator/eliminator.coffee b/tools/eliminator/eliminator.coffee index 4d06c1ec..f83b4a52 100644 --- a/tools/eliminator/eliminator.coffee +++ b/tools/eliminator/eliminator.coffee @@ -189,14 +189,13 @@ class Eliminator while incomplete incomplete = false nextTodo = {} - for source of @affects - targets = @affects[source] + for source, targets of @affects for target of targets if todo[target] for target2 of @affects[target] - if not @affects[source][target2] + if not targets[target2] if not @isLocal[source] then @dependsOnAGlobal[target2] = true - @affects[source][target2] = true + targets[target2] = true nextTodo[source] = 1 incomplete = true todo = nextTodo |