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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Oct 6 23:59:06 EDT 2008


On 2008 Oct 6, at 23:54, wman wrote:
> just for the kicks i tried the new version of bytestring without -O2  
> and the results were even worse:

Yep, ByteString does a lot of stuff that is really bad when GHC isn't  
performing stream fusion --- but when it is, the code compiles down to  
tight machine code that can rival C.

> is there a reason why -O2 shouldn't be made the default (and  
> allowing to turn off optimizations by -O0 perhaps) ?


-O2 breaks on some platforms, I think.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081006/e9c9fd8b/attachment.htm


More information about the Haskell-Cafe mailing list