
24 Sep
2015
24 Sep
'15
12:42 p.m.
Daniel Trstenjak
Hi Mario,
I just took a quick look on the implementation of 'dur' and as a first thing I would replace foldl with the strict version foldl'.
This already might explain the memory usage.
foldl' helps a bit, but is not the main contributor to the overhead. Before: 1,954,532,728 bytes allocated in the heap After: 1,741,200,280 bytes allocated in the heap And runtime is more or less unaffected. -- CYa, ⡍⠁⠗⠊⠕