[commit: ghc] master: Implement new integer-gmp2 from scratch (re #9281) (c774b28)

Herbert Valerio Riedel hvriedel at gmail.com
Wed Nov 12 10:30:46 UTC 2014


On 2014-11-12 at 11:22:25 +0100, Simon Peyton Jones wrote:
> Great stuff.  But why do primetest, rsa, and mandel allocate so much
> more?  You mention different accounting, but I've found that it is
> often worth really understanding what is happening because you
> discover "Oh, yes, that's egregiously bad, and easily fixed".

Oh, but I still plan to investigate those allocation numbers a bit more
to give a more exhaustive explaination (or even fix them)!

But I've already got a few ideas where to look: For instance,for the old
integer-gmp I did that trick to to avoid single-limb allocations (by
using a C stack-allocated temp buffer instead) so much as to avoid them
altogether, and I may have lost some of those opportunities due to the
different design.

Cheers,
  hvr


More information about the ghc-devs mailing list