haskellfoundation / hs-opt-handbook.github.io

The Haskell Optimization Handbook
https://haskell.foundation/hs-opt-handbook.github.io/
Creative Commons Attribution 4.0 International
173 stars 12 forks source link

Ordering Data Constructors Chapter #47

Open doyougnu opened 2 years ago

doyougnu commented 2 years ago

This used to be important, not sure if GHC 9.X optimizes these away now. It might so need to verify. Case study on IntMap is here though, see the source code of containers for details.

Be sure to show Stg and Core too.

doyougnu commented 1 year ago

I don't think this is relevant anymore. I'm pretty sure GHC reorders things now, but don't have any evidence so I need to atleast check.