]> Sergey Matveev's repositories - public-inbox.git/commit
AddTimer: avoid clock_gettime for the '0' case
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:05 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:25 +0000 (05:26 +0000)
commit2f9aea4ecb6208955144e8a2290d747a4ff9c966
tree51abab889f239363dd8305101e131f11858b7fe4
parent860c7e13d31390dc16c2cce813e4887f12e76731
AddTimer: avoid clock_gettime for the '0' case

We rely on immediate timers often, so we can avoid the overhead
of an extra subroutine call to retrieve the monotonic time (and
a sometimes-system call on some platforms).
lib/PublicInbox/DS.pm