server/process: Optimise latency when finishing idle functions
PATCH 1/1 server/process: Optimise latency when finishing idle functions
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 <[email protected]>
---
bitbake/lib/bb/server/process.py +1 -0
@@ -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: