[Haskell-cafe] Re: Importing Data.Char speeds up ghc around 70%
s.clover at gmail.com
Sat Dec 22 17:14:47 EST 2007
Here's the Prelude imports I see at the moment. Didn't chase down the
dependencies in all the code initially and now I see that GHC.Show does
import GHC.List. Still, I suspect this has something to do with fusion
import GHC.Err ( error, undefined )
On Dec 22, 2007 4:44 PM, Stefan O'Rear <stefanor at cox.net> wrote:
> On Sat, Dec 22, 2007 at 04:40:00PM -0500, Sterling Clover wrote:
> > I'm curious if you get the same performance difference importing
> > GHC.Listinstead of
> > Data.Char? I chased some dependencies, and Data.Char imports GHC.Arr,
> > in turn imports GHC.List, which provides a bunch of fusion rules pragmas
> > that would probably optimize your (++) usage. If this is the case, not
> > if its a bug or not, but all this will have to be thought through as
> > stream fusion is rolled out anyway, I suspect?
> > --S
> The Prelude imports GHC.List, iirc.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> -----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe