
On Thu, Dec 29, 2005 at 01:02:45PM +0000, Adrian Hey wrote:
I haven't followed everything that's happened on the Binary IO thread, but has anybody else actually tried Joels code? ..
I have and I am puzzled too.
I can reproduce the problem (ghc/Linux), but can't explain it. It seems very strange that friggin about with an otherwise irrelevant (AFAICT) MVar fixes the problem.
Could be something with GHC's thread scheduler (is it fair?). I have some ideas for workarounds, but I didn't get around to trying them. For example, I think that unpickling too many messages simultaneously put too much pressure on memory, cache and GC. I don't really have the time to test my serialization libraries with Joels code - mostly it's this unicode that scares me off (should it?). Maybe I'll try to simplify things on my own. 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