[Haskell-cafe] Help with "shootout"

Joel Reymont joelr1 at gmail.com
Mon Jan 2 19:07:43 EST 2006

On Jan 2, 2006, at 9:20 PM, Chris Kuklewicz wrote:

>   This makes me ponder one of the things that Joel was trying to do:
> efficiently pass data to a logging thread.  It may be that a custom
> channel would be helpful for that as well.

I have not taken the time to analyze the Chameneos code but need to  
point out that my problem was not with efficiently passing data to  
the logging thread. The issue was with data accumulating in the  
channel and the logger thread not reading it out fast enough.

The TChan implementation is a single-linked list implemented on top  
of TVar's. That would seem pretty efficient to me.

	Thanks, Joel


More information about the Haskell-Cafe mailing list