[Haskell-cafe] performance of map reduce
Manlio Perillo
manlio_perillo at libero.it
Fri Sep 19 17:59:22 EDT 2008
Bryan O'Sullivan ha scritto:
> On Fri, Sep 19, 2008 at 2:31 PM, Manlio Perillo
> <manlio_perillo at libero.it <mailto:manlio_perillo at libero.it>> wrote:
>
>
> By the way, this phrase:
> "We allow multiple threads to read different chunks at once by
> supplying each one with a distinct file handle, all reading the same
> file"
> here:
> http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id677193
>
> IMHO is not correct, or at least misleading.
>
>
> It's both correct and, er, leading. The files are opened in a single
> thread, and then the file handles are read by multiple threads.
Ah, right, thanks.
They are read with ByteString.Lazy.
Manlio Perillo
More information about the Haskell-Cafe
mailing list