[GHC] #8647: Reduce allocations in `integer-gmp`

GHC ghc-devs at haskell.org
Wed Jan 8 23:26:29 UTC 2014


#8647: Reduce allocations in `integer-gmp`
--------------------------------------------+------------------------------
        Reporter:  hvr                      |            Owner:
            Type:  task                     |           Status:  patch
        Priority:  normal                   |        Milestone:  7.8.1
       Component:  libraries (other)        |          Version:  7.6.3
      Resolution:                           |         Keywords:  integer-
Operating System:  Unknown/Multiple         |  gmp
 Type of failure:  Runtime performance bug  |     Architecture:  x86_64
       Test Case:                           |  (amd64)
        Blocking:                           |       Difficulty:  Unknown
                                            |       Blocked By:
                                            |  Related Tickets:  #8638
--------------------------------------------+------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"868b93beb1215a44f5f8251a397bba7fcc0815ad/integer-gmp"]:
 {{{
 #!CommitTicketReference repository="integer-gmp"
 revision="868b93beb1215a44f5f8251a397bba7fcc0815ad"
 Manually float out `int2Integer# INT_MINBOUND`

 This avoids allocating this special value over and over again every
 time it's needed, and therefore this addresses #8647.

 Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
 }}}

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


More information about the ghc-tickets mailing list