2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-08 09:25:08 +01:00

removed the set copy to enable faster iterations

This commit is contained in:
Thomas Nagy 2013-12-15 12:19:01 +01:00
parent 6d05e237d2
commit a4b03b0fd6

View File

@ -21,10 +21,10 @@ class SetOfTasks(object):
self._owner = owner
def __iter__(self):
tasks = set(self._set) # make a copy
for g in self._owner.run_after_groups:
tasks.update(g)
for task in tasks:
for task in g:
yield task
for task in self._set:
yield task
def add(self, obj):