Hello Haskellers, I have been working through the Real World Haskell chapter on Profiling and Optimisation, and got to the section Advanced techniques: fusion, where I encountered some code using Does anyone know how to rewrite this to not use deprecated libraries? I have tried to use The code I have is here: With that code, I get “1831 MB total memory in use”, which is terrible Build run steps I used were:
I get very large numbers of allocations of There is also a very large upfront allocation Any help appreciated. Cheers, -John _______________________________________________ Beginners mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners |
It looks like Haskell stack's profile options are defeating stream fusion. Anyone know a work-around? On Mon, 28 Nov 2016 at 08:23 John Ky <[hidden email]> wrote:
_______________________________________________ Beginners mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners |
Try using foldl', usually that's the right thing to do for this kind of data structure. On Sun, Nov 27, 2016 at 2:39 PM, John Ky <[hidden email]> wrote:
_______________________________________________ Beginners mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |