<div dir="ltr">new figures, after updating bytestring (0.9.0.1.1 -> <a href="http://0.9.1.2">0.9.1.2</a>) && using -O2<br><br>time Main < nums<br>real 0m2.531s<br>user 0m0.015s<br>sys 0m0.015s<br><br>
time Main2 < nums<br>real 0m13.999s<br>user 0m0.015s<br>sys 0m0.015s<br><br>time Main3 < nums<br>real 0m2.796s<br>user 0m0.015s<br>sys 0m0.015s<br><br>thats more like it, even the unpacking didn't hurt so much.<br>
<br>the morals: "Thou shalt update your libraries" & "Thou shalt not forget to turn on optimizations" before bitching it's too slow ;-)))<br><br>thx<br><br><div class="gmail_quote">On Tue, Oct 7, 2008 at 5:19 AM, Don Stewart <span dir="ltr"><<a href="mailto:dons@galois.com">dons@galois.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hmm. How are you compiling it? Using bytestring 0.9.1.x ?<br>
<br>
Should be fast,<br>
<a href="http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=all" target="_blank">http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=all</a><br>
<br>
Assuming you're turning on optimisations ( ghc -O2 )<br>
<br>
-- Don<br></blockquote></div><br></div>