From 39fab899759275d7ab1e30f3007d28e475ffe6d3 Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl Date: Tue, 24 Mar 2026 22:22:33 +0000 Subject: [PATCH] Remove sched_yield() from worker thread task pickup Seems not needed and has a big performance impact. --- common/workerpool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/workerpool.c b/common/workerpool.c index 6b73541c..58380ed5 100644 --- a/common/workerpool.c +++ b/common/workerpool.c @@ -81,7 +81,6 @@ void *worker_thread(void *p) zarray_get_volatile(wp->tasks, wp->taskspos, &task); wp->taskspos++; pthread_mutex_unlock(&wp->mutex); - sched_yield(); // we've been asked to exit. if (task->f == NULL)