[GHC] #5218: Add unpackCStringLen# to create Strings from string literals

GHC ghc-devs at haskell.org
Mon Jan 26 17:42:43 UTC 2015


#5218: Add unpackCStringLen# to create Strings from string literals
-------------------------------------+-------------------------------------
        Reporter:  tibbe             |                   Owner:
            Type:  feature request   |  thoughtpolice
        Priority:  normal            |                  Status:  new
       Component:  Compiler          |               Milestone:  7.12.1
      Resolution:                    |                 Version:  7.0.3
Operating System:  Unknown/Multiple  |                Keywords:
 Type of failure:  Runtime           |            Architecture:
  performance bug                    |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:  5877              |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by nomeata):

 I just put two 15000-element unboxed vector of Word16 in a module, using
 `fromList [...]` and compile time is annoying, and the runtime overhear is
 (possibly unjustified) worrying me. Having a way to have a literal form of
 such an array (which then hopefully is put into the program as-is) would
 be nice.

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


More information about the ghc-tickets mailing list