[Haskell-cafe] Re: speed: ghc vs gcc
sylvan at student.chalmers.se
Sat Feb 21 18:55:38 EST 2009
On Sat, Feb 21, 2009 at 11:35 PM, Bulat Ziganshin <bulat.ziganshin at gmail.com
> Hello Louis,
> Sunday, February 22, 2009, 2:30:23 AM, you wrote:
> yes, you are right. Don also compared results of 64x-reduced
> computation with full one. are you think that these results are more
Yes. Clearly so.
It still computes the result from scratch - it just uses a trick which
generates better code. This is clearly a useful and worthwhile exercise as
it shows A) A neat trick with TH, B) A reasonably practical way to produce
fast code for the critical parts of a Haskell app, C) a motivating example
for implementing a compiler optimization to do it automatically.
Just outputting the precomputed result means nothing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe