[GHC] #16190: Speed up handling of large String literals
GHC
ghc-devs at haskell.org
Mon Mar 4 18:51:02 UTC 2019
#16190: Speed up handling of large String literals
-------------------------------------+-------------------------------------
Reporter: hsyl20 | Owner: (none)
Type: task | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.3
Resolution: fixed | 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: | https://gitlab.haskell.org/ghc/ghc/merge_requests/143
-------------------------------------+-------------------------------------
Comment (by Marge Bot <ben+marge-bot@…>):
In [changeset:"1d9a1d9fb8fe0a1fea2c44c4246f102ff3e1f3a3/ghc" 1d9a1d9/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="1d9a1d9fb8fe0a1fea2c44c4246f102ff3e1f3a3"
NCG: fast compilation of very large strings (#16190)
This patch adds an optimization into the NCG: for large strings
(threshold configurable via -fbinary-blob-threshold=NNN flag), instead
of printing `.asciz "..."` in the generated ASM source, we print
`.incbin "tmpXXX.dat"` and we dump the contents of the string into a
temporary "tmpXXX.dat" file.
See the note for more details.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16190#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list