Re: [Haskell-cafe] Data.ByteStream.Char8.words performance

2007-04-01 Thread Duncan Coutts
On Sun, 2007-04-01 at 17:25 +0200, Thomas Schilling wrote: On 31 mar 2007, at 04.09, Duncan Coutts wrote: The ByteString libs was more-or-less the first high performance thing that we wrote and we've learnt plenty more since then. I think there's a good deal more performance too eek

[Haskell-cafe] Data.ByteStream.Char8.words performance

2007-03-30 Thread Dino Morelli
I noticed something about ByteStream performance that I don't understand. I have a test text document: $ ls -sh test-text-file 956K test-text-file Running this program, using the Prelude's IO functions: module Main where main = do content - readFile test-text-file let l =

Re: [Haskell-cafe] Data.ByteStream.Char8.words performance

2007-03-30 Thread Jeremy Shaw
Hello, Did you compile with -O2 ? That makes a huge difference when using ByteString. j. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.ByteStream.Char8.words performance

2007-03-30 Thread Dino Morelli
On Fri, 30 Mar 2007, Jeremy Shaw wrote: Hello, Did you compile with -O2 ? That makes a huge difference when using ByteString. j. Ah, that was exactly it. I feel silly. module Main where import qualified Data.ByteString.Char8 as B main = do content - B.readFile test-text-file let

Re: [Haskell-cafe] Data.ByteStream.Char8.words performance

2007-03-30 Thread Duncan Coutts
On Fri, 2007-03-30 at 14:24 -0700, Jeremy Shaw wrote: Hello, Did you compile with -O2 ? That makes a huge difference when using ByteString. Hmm, I think we can do better than that. It would be nicer to have it work fast without needing any -O flags at all in the user's module. Lets look at