Benchmarking GHC

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Oct 19 09:19:00 EDT 2006


Hello Ketil,

Thursday, October 19, 2006, 11:05:48 AM, you wrote:

> One thing that IME makes a difference is -funbox-strict-fields.  It's
> probably better to use pragmas for this, though.  Another thing to
> consider is garbage collection RTS flags, those can sometimes make a
> big difference.

yes, it's better to unbox individual fields. i had a program where
this flag leads to significant memory usage increase. smth like this:

data T1 = T1 ... -- many fields

data T2 = T2 !T1 !T1 !T1

make t1 = T2 t1 t1 t1



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list