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

Bulat Ziganshin bulatz at HotPOP.com
Wed Dec 21 02:45:00 EST 2005


Hello Joel,

Wednesday, December 21, 2005, 5:39:43 AM, you wrote:

JR> The issue is that with 1000 threads my serialization is taking a few
JR> seconds.

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

2) try to insert lock around thread startup code, something like this:

withMVar x $ \_ ->
  send "Hello"
  data <- get
  cmd <- unpickle data
...


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list