[Haskell-cafe] Killer pickler combinators (was Time leak)

Joel Reymont joelr1 at gmail.com
Wed Dec 21 05:22:11 EST 2005


On Dec 21, 2005, at 7:45 AM, Bulat Ziganshin wrote:

> 1) i think that this method of deserialization may be just
> inefficient. what is plain deserialization time for this 50k?

No idea. I know it's inefficient but this is not the issue. The issue  
is that with some strange tweaks it runs fast.

> 2) try to insert lock around thread startup code, something like this:
>
> withMVar x $ \_ ->
>   send "Hello"
>   data <- get
>   cmd <- unpickle data


I have no "data <- get". Did you try this on your system to see if  
your fix works?

We spent a lot of time tweaking this on #haskell yesterday and you  
need to be quite precise at what you tweak to get it right. I would  
appreciate if you could actually run the code.

Also, what will this lock do and how far do you want it to extend? I  
do need the threads to run in parallel.

	Thanks, Joel

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list