[GHC] #2159: Use a more efficient representation than [DynFlag]

GHC ghc-devs at haskell.org
Sun Feb 14 18:35:41 UTC 2016


#2159: Use a more efficient representation than [DynFlag]
-------------------------------------+-------------------------------------
        Reporter:  igloo             |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  6.8.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Unless I am mistaken this has already been implemented. `DynFlags` now
 represents dump flags, extension flags, and general flags as `IntSet`s,
 using the `Enum` instances of the respective types to map each flag to a
 bit. I'm not entirely sure when this change was made but it was quite a
 while ago.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2159#comment:20>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list