[Dovecot] Dovecot waking every 50ms when doing nothing
Johannes Berg
johannes at sipsolutions.net
Mon Jun 4 14:07:11 EEST 2007
On Sun, 2007-06-03 at 18:27 +0300, Timo Sirainen wrote:
> ..Or maybe just fix the basic timeout_*() API. Add a new timeout_reset()
> call == timeout_remove() + timeout_add(original values) and then make
> the implementation be fast with hundreds of timeouts. The timeouts are
> currently kept in linked list, so that could be changed to red-black
> tree I guess (sorted by next execution time). Or is there a better data
> structure for this?
Maybe check what the kernel does? It has the runqueue and that afaik.
johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070604/96da74ce/attachment.bin
More information about the dovecot
mailing list