OpenBSD/src pWxtSjr — usr.sbin/bgpd timer.c session.c
Change timer_nextisdue() and timer_nextduein() to take the current time as an argument. This way getmonotime() can be called once at the start of looping over all peers instead of twice during the loop. Makes a big difference with many peers. OK florian@ sthen@
Version | Delta | File | |
---|---|---|---|
1.18 | +5 | -5 | usr.sbin/bgpd/timer.c |
1.381 | +5 | -3 | usr.sbin/bgpd/session.c |
1.138 | +3 | -3 | usr.sbin/bgpd/session.h |
+13 | -11 | 3 files |