[Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

Don Stewart dons at galois.com
Tue Oct 7 00:50:35 EDT 2008


666wman:
>    ghc -Onot -fstrictness --make Main1.hs && ghc -Onot -fstrictness --make
>    Main2.hs && ghc -Onot -fstrictness --make Main3.hs
> 
>    time Main1 < nums
>    real    0m39.530s
>    user    0m0.015s
>    sys     0m0.030s
> 
>    time Main2 < nums
>    real    0m14.078s
>    user    0m0.015s
>    sys     0m0.015s
> 
>    time Main3.exe < nums
>    real    0m41.342s
>    user    0m0.015s
>    sys     0m0.015s
> 
>    still, i'm going to google up strictness analysis to at least know what
>    made no difference in this case ;-)

Oh, that's interesting. Did they actually recompile? (you used
-fforce-recomp). Otherwise, might be an idea to use hpaste.org to paste
teh Main1,2,3 source code, since I think people reading don't know what
is represented in each program at this point.

-- Don


More information about the Haskell-Cafe mailing list