[Haskell-cafe] Understanding GHC allocations
beroal at ukr.net
Thu Jun 17 15:45:55 EDT 2010
On 17.06.10 19:12, Roman Beslik wrote:
> On 17.06.10 12:40, Roman Cheplyaka wrote:
>> > From reading core I got the impression that everything is strict&
>> unboxed. Perhaps this is related to creating some closures? How to get
>> rid of those allocations?
> Yes, "distance" creates a closure of type @Double -> Double# ->
> Double@ which is obviously not necessary. I do not know why.
"-funfolding-use-threshold=7" removes that closure.
More information about the Haskell-Cafe