[Haskell-beginners] parallel map/filter

Marcin Mrotek marcin.jan.mrotek at gmail.com
Fri Jun 5 18:38:48 UTC 2015


My first guesses would be that:
a) Your program is slowed down because lines from the file is read one line
by one, i.e. there's lazy IO at work. Have you tried your code on a list
that's loaded in the memory as a whole at once?
b) The cost of dereferencing the next link in a list overwhelms the cost of
computing one answer. Have you tried using a tree instead?

Best regards,
Marcin Mrotek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150605/f8b218c0/attachment.html>


More information about the Beginners mailing list