* [PATCH] server/process: Optimise latency when finishing idle functions
@ 2014-03-10 0:59 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-10 0:59 UTC (permalink / raw)
To: bitbake-devel
When idle functions finish, its likely we have some other work
to do, so don't sleep in the select call but instead, skip it.
This removes small amounts of latency in common commands.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 07688a2..577c250 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -128,6 +128,7 @@ class ProcessServer(Process, BaseImplServer):
retval = function(self, data, False)
if retval is False:
del self._idlefuns[function]
+ nextsleep = None
elif retval is True:
nextsleep = None
elif nextsleep is None:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-10 0:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 0:59 [PATCH] server/process: Optimise latency when finishing idle functions Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.