7 Oct 05:36
Re: newbie questions (read, etc., with Data.ByteString.Lazy.Char8)
wman <666wman <at> gmail.com>
2008-10-07 03:36:22 GMT
2008-10-07 03:36:22 GMT
new figures, after updating bytestring (0.9.0.1.1 -> 0.9.1.2) && using -O2
time Main < nums
real 0m2.531s
user 0m0.015s
sys 0m0.015s
time Main2 < nums
real 0m13.999s
user 0m0.015s
sys 0m0.015s
time Main3 < nums
real 0m2.796s
user 0m0.015s
sys 0m0.015s
thats more like it, even the unpacking didn't hurt so much.
the morals: "Thou shalt update your libraries" & "Thou shalt not forget to turn on optimizations" before bitching it's too slow
))
thx
time Main < nums
real 0m2.531s
user 0m0.015s
sys 0m0.015s
time Main2 < nums
real 0m13.999s
user 0m0.015s
sys 0m0.015s
time Main3 < nums
real 0m2.796s
user 0m0.015s
sys 0m0.015s
thats more like it, even the unpacking didn't hurt so much.
the morals: "Thou shalt update your libraries" & "Thou shalt not forget to turn on optimizations" before bitching it's too slow
))thx
On Tue, Oct 7, 2008 at 5:19 AM, Don Stewart <dons <at> 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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed