[GHC] #14509: Consider adding new stg_ap_* functions

GHC ghc-devs at haskell.org
Wed Nov 22 01:39:48 UTC 2017


#14509: Consider adding new stg_ap_* functions
-------------------------------------+-------------------------------------
           Reporter:  dobenour       |             Owner:  (none)
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:  8.4.1
          Component:  Runtime        |           Version:  8.2.1
  System                             |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Runtime
  Unknown/Multiple                   |  performance bug
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Currently, the RTS has a fixed set of `stg_ap_*` functions.  There are two
 problems with this:

 1. All programs pay for these functions, even programs that don’t use
 them.  Furthermore, it is not possible for new ones to be generated by GHC
 for certain cases.
 2. The set included in the RTS may not be optimal.

 (1) is a lot of work, but dealing with (2) should be “just” a matter of
 hunting down which functions would be useful.  I would start with
 ByteString, Text, and other highly optimized libraries, some of which
 (such as ByteString) are very widely used.

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


More information about the ghc-tickets mailing list