[Haskell-cafe] lazy strings and parallel read

Manlio Perillo manlio_perillo at libero.it
Fri Sep 19 12:46:13 EDT 2008


Don Stewart ha scritto:
> manlio_perillo:
>> Hi.
>>
>> After having read
>> http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390
>>
>> I have a doubt about Data.ByteString.Lazy.
>>
>> Why getContents function don't use pread (or an emulation, if not 
>> available)?
> 
> Why would it?
> 

So that you don't need to open the same file multiple time:
http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id677193



> -- Don
> 



Thanks   Manlio Perillo


More information about the Haskell-Cafe mailing list