Turning on -funbox-small-strict-fields by default in GHC 7.8

Johan Tibell johan.tibell at gmail.com
Fri Apr 26 07:32:50 CEST 2013


On Thu, Apr 25, 2013 at 9:51 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> On Thu, Apr 25, 2013 at 4:01 PM, Johan Tibell <johan.tibell at gmail.com>
> wrote:
>>
>> I think you could make up a case where it is a loss. It would boil down to
>> repeated reboxing of a value pulled out of a strict field. In practice I
>> think it's pretty hard.
>
>
> I've seen this in real-world code, though it is indeed rare in my
> experience.

If you remember where it would be great to see an example. There's
also NOUNPACK nowadays so you can opt out in these specific cases.



More information about the ghc-devs mailing list