[Haskell-cafe] binary IO

Joel Reymont joelr1 at gmail.com
Wed Dec 28 06:54:34 EST 2005


On Dec 28, 2005, at 11:40 AM, Lennart Augustsson wrote:

> Why on earth do you want each tread to open the file and unpickle?
> Why not unpickle once and reuse it?
> Or, if this is just a test and in the future they will all read
> from different files (or sockets), then maybe you are hitting
> on a different bottleneck than you think.

Right, they will be reading from different sockets.

> Instead of starting optimizing a particular pickling library  
> perhaps you
> should have tried different libraries and picked the best one.

Well, I thought pickler combinators were good but yes, you are right.

> Since this is your project I don't think your project I don't think
> you can expect others to test things for you.  Well, maybe if you post
> your code as a challange. ;)

I did. http://wagerlabs.com/timeleak.tgz
	
	Joel

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list