commit | 96bcfd75aad6f410d7c8c0311d76799cf1ad87a5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Apr 29 10:41:56 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Apr 29 13:43:53 2007 +0200 |
tree | 0c03597ead668026d39b24f3cd85599d9ec99fd3 | |
parent | 3fa095d54232caaaa98627e61db32f71eaba82ce [diff] [blame] |
[MAJOR] replaced rbtree with ul2tree. The rbtree-based wait queue consumes a lot of CPU. Use the ul2tree instead. Lots of cleanups and code reorganizations made it possible to reduce the task struct and simplify the code a bit.
diff --git a/src/queue.c b/src/queue.c index 54fd6a3..9b53687 100644 --- a/src/queue.c +++ b/src/queue.c
@@ -62,7 +62,7 @@ sess = pendconn_get_next_sess(s, p); if (sess == NULL) break; - task_wakeup(&rq, sess->task); + task_wakeup(sess->task); } return TIME_ETERNITY;