[GHC] #16190: Speed up handling of large String literals

GHC ghc-devs at haskell.org
Fri Jan 18 10:44:12 UTC 2019


#16190: Speed up handling of large String literals
-------------------------------------+-------------------------------------
        Reporter:  hsyl20            |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by hsyl20):

 @simonpj I will add a note for this one before submitting a MR.

 @hvr Yes. With the new approach there is no interaction at all as we don't
 perform any substitution in Core anymore. Whenever the NCG has to embed a
 big chunk of bytes, it can use the ".incbin" technique. If we add literals
 that use `ByteArray`, we can easily dump them into a file too, whatever
 their actual contents is: big `ByteArray`s are already pinned by GHC so we
 just have to `write` them by using their address and size.

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


More information about the ghc-tickets mailing list