[GHC] #14583: Don’t use `String` when generating code

GHC ghc-devs at haskell.org
Fri Dec 15 17:01:44 UTC 2017


#14583: Don’t use `String` when generating code
-------------------------------------+-------------------------------------
           Reporter:  dobenour       |             Owner:  (none)
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.1
  (CodeGen)                          |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 GHC uses `String` when generating code, which is very slow.  It would be
 much better to switch to `Data.ByteString.Builder`, or better yet output
 executables directly rather than going through an assembler.

 This applies to both the native and LLVM code generators.

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


More information about the ghc-tickets mailing list