[Haskell-cafe] Re: speed: ghc vs gcc

Sebastian Sylvan 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
> wrote:

> 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
> fair?


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.



-- 
Sebastian Sylvan
+44(0)7857-300802
UIN: 44640862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090221/8861a70f/attachment.htm


More information about the Haskell-Cafe mailing list