diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-26 14:37:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-30 17:23:35 +0100 |
commit | 9254d537aad4b27e359446e11d606b21d9052f42 (patch) | |
tree | fff233ac39118835ecd4007994af2819a18ad65a /bitbake/lib | |
parent | 2f8cd1d021a4311e31385a35d540b34195101fc1 (diff) | |
download | poky-9254d537aad4b27e359446e11d606b21d9052f42.tar.gz |
bitbake: runqueue: Small performance optimisation
A minor performance optmisation to keep lists smaller when running large
builds. We can do this since once a task has been built, we don't need
to worry about it. This improves a major bottleneck that shows up on
performance profile charts in dryruns.
(Bitbake rev: cd6b89230823707c3c9bb9e6883bf5a971916581)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 31de3ed1cf..18049436fd 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -207,6 +207,8 @@ class RunQueueScheduler(object): | |||
207 | 207 | ||
208 | def newbuildable(self, task): | 208 | def newbuildable(self, task): |
209 | self.buildable.add(task) | 209 | self.buildable.add(task) |
210 | # Once tasks are running we don't need to worry about them again | ||
211 | self.buildable.difference_update(self.rq.runq_running) | ||
210 | 212 | ||
211 | def removebuildable(self, task): | 213 | def removebuildable(self, task): |
212 | self.buildable.remove(task) | 214 | self.buildable.remove(task) |