]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] task_queue: assume most consecutive timers are equal
authorWilly Tarreau <w@1wt.eu>
Sat, 5 Jul 2008 16:16:19 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 5 Jul 2008 16:16:19 +0000 (18:16 +0200)
commitce44f12c1eec516812220bb523ff3a97efe5e1a4
tree01720b5133f054d316d4553bdfebe23e129d5b6a
parent91e99931b7a94dfa6dc62c384b1183b7bc70b7c7
[OPTIM] task_queue: assume most consecutive timers are equal

When queuing a timer, it's very likely that an expiration date is
equal to that of the previously queued timer, due to time rounding
to the millisecond. Optimizing for this case provides a noticeable
1% performance boost.
include/proto/task.h
src/task.c