diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-14 10:23:27 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-14 10:23:27 +0000 |
commit | 49a36dd19d8b8a2ec55b476610373dfb46e1e8cf (patch) | |
tree | 2293f0b0638e0b9b4af627231635880992188e80 /lib/bb/taskdata.py | |
parent | 9aa5ce0e3bc7c5e1e51aaa64f5b5e70ddaa2623c (diff) | |
download | bitbake-49a36dd19d8b8a2ec55b476610373dfb46e1e8cf.tar.gz |
taskqueue/runqueue.py: Remove matches_in_list and both_contain functions and use tasks_lookup instead - 33% speedup for world runqueue calculation
Diffstat (limited to 'lib/bb/taskdata.py')
-rw-r--r-- | lib/bb/taskdata.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py index 1dcffcaf7..f3dc02cba 100644 --- a/lib/bb/taskdata.py +++ b/lib/bb/taskdata.py @@ -53,31 +53,6 @@ class TaskData: self.abort = abort - def matches_in_list(self, data, substring): - """ - Return a list of the positions of substring in list data - """ - matches = [] - start = 0 - while 1: - try: - start = data.index(substring, start) - except ValueError: - return matches - matches.append(start) - start = start + 1 - - def both_contain(self, list1, list2): - """ - Return the items present in both list1 and list2 - """ - matches = [] - for data in list1: - if data in list2: - return data - return None - - def getbuild_id(self, name): """ Return an ID number for the build target name. |