[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Timer Optimization Needed ?



On Wed, Oct 3, 2012 at 1:13 AM, Parvez Shaikh <pshaikh.world@xxxxxxxxx> wrote:
 [...]
> I would like to know whether in such a scenario I should make use of the
> "Timer Optimizations" suggested in the libevent documentation. Please note
> that the data associated with each "work" would be different. So the
> callback in the event of the timeout will be called with different data.

Hi, Parvez! It sounds like it's around the point where using the
"common timeout" optimization might start to help, but it's near the
boundary. I'd suggest benchmarking both ways to see if there's a
difference for your program.

-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.