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)
commit8898b4b5ffc1235fe4f1ac822f01a72bf3af33a8
treef6cf2e627d50c4174c43e59f3acac086bea69f9e
parentf9bc7b82036dcdf5dac40ff74dbd33c87654ae49
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.
libraries/base/Data/HashTable.hs
libraries/base/Data/Typeable.hs
libraries/base/GHC/Arr.lhs
libraries/base/GHC/IOBase.lhs