[Haskell-cafe] Re: Hugs vs GHC (again)was: Re: Somerandomnewbiequestions

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Mon Jan 17 16:44:51 EST 2005

John Meacham wrote:

 >Actually, If I were writing new haskell libraries, I would use mmap
 >whenever I could for accessing files. not only does it make the file
 >pointer problem go away, but it can be drastically more efficient.

I'm not sure this is a good idea, because GHC really needs non-blocking 
I/O to support its thread model, and memory-mapped I/O always blocks. In 
fact this is a problem even if we only memory-map files at the 
programmer's request.

-- Ben

More information about the Haskell-Cafe mailing list