[Haskell-cafe] memory issues

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Feb 28 03:38:18 EST 2009


Hello Daniel,

Saturday, February 28, 2009, 3:10:44 AM, you wrote:

>> print may waste a lot of time, locking stdout for every
>> line printed

>     hout <- openFile (args!!1) WriteMode
>     mapM_ (hPrint hout) $ sort $ blocks content

> ? I find hardly any difference, though.

no difference. if handle is locked for every output operation - both
versions will be equivalent. if not - they also will be equivalent :)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list