[GHC] #8793: Improve GHC.Event.IntTable performance

GHC ghc-devs at haskell.org
Fri Jan 8 11:25:30 UTC 2016


#8793: Improve GHC.Event.IntTable performance
-------------------------------------+-------------------------------------
        Reporter:  cdk               |                Owner:
            Type:  task              |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Core Libraries    |              Version:  7.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1742
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"1abb7005067e22039807de34cd60bed55316e925/ghc"
 1abb7005/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1abb7005067e22039807de34cd60bed55316e925"
 Improve GHC.Event.IntTable performance

 Speed up GHC.Event.IntTable.lookup by removing the IO context from the
 go helper function. This generates a little bit better code as we can
 avoid repeating the stack check.

 Remove unused parameter from GHC.Event.IntTable.updateWith.go and
 directly return a bool instead of a maybe and then checking that whether
 it is a Nothing.

 Test Plan: validate

 Reviewers: austin, hvr, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1742

 GHC Trac Issues: #8793
 }}}

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


More information about the ghc-tickets mailing list