kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit fe0149ad24d462852e7c3c6eee8417dbbd37f74c
parent 478c008c994e61ea30154f5cadaabe63d2e51780
Author: Joris Vink <joris@coders.se>
Date:   Tue, 29 Jul 2014 13:14:34 +0200

Have workers always pass the accept lock after handling their events.

Provides a nice performance boost when scaling across multiple cpu's.

Diffstat:
src/worker.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/worker.c b/src/worker.c @@ -269,9 +269,7 @@ kore_worker_entry(struct kore_worker *kw) kore_platform_event_wait(timer); - if (((worker->accepted >= worker->accept_treshold) || - (worker_active_connections >= worker_max_connections)) && - worker->has_lock) + if (worker->has_lock) kore_worker_acceptlock_release(); http_process();