[Haskell-cafe] Optimizing a high-traffic network architecture

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed Dec 14 14:48:43 EST 2005


On Wed, Dec 14, 2005 at 07:11:15PM +0000, Joel Reymont wrote:
> I figure I can have a single timer thread and a timer map keyed on  
> ClockTime. I would try to get the min. key from the map every few  
> seconds, compare it to clock time, fire of the event as needed,  
> remove the timer and repeat.

You don't have to check "every few seconds". You can determine
exactly how much you have to sleep - just check the timeout/event with
the lowest ClockTime.

Best regards
Tomasz

-- 
I am searching for a programmer who is good at least in some of
[Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland


More information about the Haskell-Cafe mailing list