Fix performance regression: re-instate -funbox-strict-fields
authorSimon Marlow <simonmar@microsoft.com>
Mon, 29 Oct 2007 15:07:30 +0000 (15:07 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 29 Oct 2007 15:07:30 +0000 (15:07 +0000)
commit7da090cd9ad3c032a3d3168bed12a5f89b3f86d7
treec4e4be57cfb720cde42b5501f238193ed28cf14d
parentee60f7f31db8897f2b078c964fe715813faee702
Fix performance regression: re-instate -funbox-strict-fields
Yikes!  While investigating the increase in code size with GHC 6.8
relative to 6.6, I noticed that in the transition to Cabal for the
libraries we lost -funbox-strict-fields, which is more or less
depended on by the IO library for performance.  I'm astonished that we
didn't notice this earlier!

To reduce the chances of this happening again, I put
-funbox-strict-fields in the OPTIONS_GHC pragma of the modules that
need it.  {-# UNPACK #-} pragmas would be better, though.
Data/HashTable.hs
Data/Typeable.hs
GHC/Arr.lhs
GHC/IOBase.lhs