From fc027ef55fa5e03b6fd6241161fa46b3e1bd10d2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 5 Nov 2024 15:04:18 +0000 Subject: bitbake: server/process: Decrease idle/main loop frequency The idle and main loops have socket select calls to know when to execute. This means we can increase the normal timeout frequency since this is just a fall back and have some small efficiency gains. (Bitbake rev: 8d8e17af8619c976819170c9d5d9a686a666c317) Signed-off-by: Richard Purdie --- bitbake/lib/bb/server/process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index b627ae0ab6..4b35be62cd 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -329,7 +329,7 @@ class ProcessServer(): bb.error("Idle thread terminated, main thread exiting too") self.quit = True - nextsleep = 0.1 + nextsleep = 1.0 if self.xmlrpc: nextsleep = self.xmlrpc.get_timeout(nextsleep) try: @@ -439,7 +439,7 @@ class ProcessServer(): self.idle_cond.notify_all() while not self.quit: - nextsleep = 0.1 + nextsleep = 1.0 fds = [] with bb.utils.lock_timeout(self._idlefuncsLock): -- cgit v1.2.3-54-g00ecf