[Haskell-cafe] Time performance with inlining and space performance with newtype?
Albert Y. C. Lai
trebla at vex.net
Fri Oct 9 20:16:11 UTC 2015
On 2015-10-09 07:30 AM, Rob Stewart wrote:
> Can I ask GHC to tell me how many bytes the storage of each object
> would require? Or more generally, would looking at GHC Core for all my
> data structures inform me of the memory space costs for each of them?
Cmm (-ddump-opt-cmm) is where you see the actual numbers directly.
But if you already know the stuff in
https://github.com/takenobu-hs/haskell-ghc-illustrated
then you can just look at the Haskell level and predict.
More information about the Haskell-Cafe
mailing list