[Haskell-cafe] Number of outstanding messages in Chan or TChan
Joel Reymont
joelr1 at gmail.com
Tue Dec 6 10:42:32 EST 2005
I must eat crow :-(. Moving the thread and logger mailboxes from
TChan to TMVar reduced memory consumption by an order of magnitude. I
found my space leak. Moving serialization from [Word8] to unboxed
arrays did not hurt either.
On Dec 6, 2005, at 1:47 PM, Bulat Ziganshin wrote:
> either
> 1) use MVars/TMVars instead of Channels. in any case your logging
> thread must consume data not slower than other channels produce then.
> in fact, using Chan have meaning only to smooth temporary speed
> differences between different threads. are you really need this??
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list