[GHC] #8472: Primitive string literals prevent optimization

GHC ghc-devs at haskell.org
Mon Nov 14 23:43:58 UTC 2016


#8472: Primitive string literals prevent optimization
-------------------------------------+-------------------------------------
        Reporter:  akio              |                Owner:  gridaphobe
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.6.3
      Resolution:                    |             Keywords:  newcomer
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Runtime           |  (amd64)
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2554,
       Wiki Page:                    |  Phab:D2605
-------------------------------------+-------------------------------------

Comment (by akio):

 Replying to [comment:17 simonpj]:
 > > this means a larger code size.
 >
 > Why??  In both cases I'd ultimately expect to see a top-level machine-
 code label for a literal string, and a reference to that label in the
 compiled code.  I see no reason for increased code size, or increased
 bytes-allocated.

 Sorry, I meant a larger size of the core. Presumably the compiler needs to
 use more memory to store a larger syntax tree.

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


More information about the ghc-tickets mailing list