[Haskell-cafe] Data.Binary.encode slower than show

Philip Armstrong phil at kantaka.co.uk
Mon Jul 27 03:13:11 EDT 2009


On Sun, Jul 26, 2009 at 10:27:41PM +0200, Grzegorz Chrupała wrote:
>Hi all,
>I have a piece of code where I'm serializing a datastructure with the
>following type [(Int, (Map DType (IntMap Int)))], using Binary.encode
>The thing is it is very slow: actually quite a bit slower than just using
>show.
>This seems rather suspicious. Any idea what could be going on?

Does Map serialisation still require flattening the map to a List?

Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


More information about the Haskell-Cafe mailing list