new figures, after updating bytestring (0.9.0.1.1 -> 0.9.1.2) && using -O2
time Main < nums
real 0m2.531stime Main2 < nums
user 0m0.015s
sys 0m0.015s
real 0m13.999stime Main3 < nums
user 0m0.015s
sys 0m0.015s
real 0m2.796sthats more like it, even the unpacking didn't hurt so much.
user 0m0.015s
sys 0m0.015s
the morals: "Thou shalt update your libraries" & "Thou shalt not forget to turn on optimizations" before bitching it's too slow ;-)))
thxOn Tue, Oct 7, 2008 at 5:19 AM, Don Stewart <dons@galois.com> wrote:
Hmm. How are you compiling it? Using bytestring 0.9.1.x ?
Should be fast,
http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=all
Assuming you're turning on optimisations ( ghc -O2 )
-- Don