timer: simple optimization for large number of timers.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 May 2015 07:54:22 +0000 (17:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 May 2015 07:54:22 +0000 (17:24 +0930)
commitc951c9d9d730ee021eb76e7d87301b0634e0147d
tree9925959b73c55293073ab22487e174838bb94164
parent63f770591286a5a61ef2857377eeab5e0e75d115
timer: simple optimization for large number of timers.

This is still pretty stupid, but greatly reduces my routing-sim time.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/timer/timer.c
ccan/timer/timer.h