<div dir="ltr"><div><div><div><div>First 2MB isn&#39;t a lot of RAM nowadays, do you mean 2GB or is that just compared to the rest of the program ?<br></div>Second, your powersOfTen should probably be :<br></div><br>&gt; powersOfTen = iterate (10*) 1<br>
<br></div>Or maybe even a Vector (if you can guess the maximum value asked of it) or a MemoTrie (if you can&#39;t) since list indexing is slow as hell.<br></div>That could help with memoPair which should definitely be a Vector and not a list.<br>
<div class="gmail_extra"><br></div><div class="gmail_extra">Good luck (on the other hand, maybe your program is already &quot;good enough&quot; and you could just switch to another project)<br></div><div class="gmail_extra">
-- <br></div><div class="gmail_extra">Jedai<br></div></div>