summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_debug.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-22 12:45:39 +0100
committerJeremy Allison <jra@samba.org>2013-03-01 12:01:50 -0800
commitafd4198bf1ee5877a660d42e615e06d895690161 (patch)
treeda3c2bfc7617244d9813e4516d99f98b198db3aa /lib/tevent/tevent_debug.c
parente5ae80378af00c5c0158413bd1f1a8aca27fab04 (diff)
downloadsamba-afd4198bf1ee5877a660d42e615e06d895690161.tar.gz
samba-afd4198bf1ee5877a660d42e615e06d895690161.tar.bz2
samba-afd4198bf1ee5877a660d42e615e06d895690161.zip
tevent: optimize adding new timer events
As new timestamps typically get higher:-) it's better to traverse the existing list from the tail. This is not completely optimal, but it should be better than before. A second optimization could be done for zero timestamps, we would just remember the last_zero_timer, but that would change the internal ABI. Normally thatshould not be a poblem, but the Samba's source3/lib/events.c abuses tevent_internal.h from the current source tree, even if an external tevent.h is used. The other problem is that it makes use of tevent_common_add_timer() without using tevent_common_loop_timer_delay(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tevent/tevent_debug.c')
0 files changed, 0 insertions, 0 deletions