RealFrac methods for Double and Float

Antoine Latter aslatter at gmail.com
Tue Oct 12 11:15:14 EDT 2010


On Tue, Oct 12, 2010 at 10:02 AM, Tyson Whitehead <twhitehead at gmail.com> wrote:
> On October 11, 2010 15:12:12 Daniel Fischer wrote:
>> GHC's new code generator does some incredible stuff with the code for
>> Float's RealFrac instance, properFraction has become about _seven times_
>> faster, floor and ceiling about _thirteen times_ and round about _10.5
>> times_ (values for my box, the exact numbers will differ, but the tendency
>> will be the same).
>
> Out of curiosity, by new code generator, are you meaning just the stock GHC 7
> code path or are you meaning the new now available but disabled by default
> unless you use some flag (which I forget right now) code generation path.
>
> Cheers!  -Tyson
>

When I did the GHC 7 timings I simply ran the shell script provided in
the linked tarball - no funny business.

Antoine


More information about the Libraries mailing list