[Haskell-cafe] binary IO
sebastian.sylvan at gmail.com
Wed Dec 28 08:05:31 EST 2005
On 12/28/05, Joel Reymont <joelr1 at gmail.com> wrote:
> 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.
I think what he's trying to say is that reading from disk is different
than reading from sockets so doing tests with disk reading is
misrepresenting the problem and may indicate a bottle-neck that isn't
How does this work if you remove the file-reading? I mean just putting
the file on a small TCP/IP file server with some simulated latency and
bandwidth limitation, and then connecting to that in each thread?
More information about the Haskell-Cafe