
#9577: String literals are wasting space -------------------------------------+------------------------------------- Reporter: xnyhps | Owner: xnyhps Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.8.2 (NCG) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Runtime | Related Tickets: performance bug | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by xnyhps): I found #5218, which sounds like a nice solution for bytestrings because it gives the option to do different things with string and bytestring literals (part 2 of [https://ghc.haskell.org/trac/ghc/ticket/5218#comment:3 comment 3]). I can look at this at the same time. Alternatively, using the same heuristic as GCC would also be an option: align only ≥32 byte strings. (`genCCall` has a maximum length it will unroll, but I can't tell what that practically is on x86.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9577#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler