[GHC] #15210: Use ByteStrings for strings that don't use FastString's features

#15210: Use ByteStrings for strings that don't use FastString's features -------------------------------------+------------------------------------- Reporter: sjakobi | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.3 Keywords: performance, | Operating System: Unknown/Multiple strings | Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: #15157 Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The first two candidates that I have in mind are SourceText and StringLiteral's sl_fs field. There might be a point in creating a simple wrapper for UTF8-encoded ByteString. HsDocString could use that one too. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15210 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15210: Use ByteStrings for strings that don't use FastString's features -------------------------------------+------------------------------------- Reporter: sjakobi | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: performance, | strings Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #15157 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Note that we also have `LitString` for literal strings. Otherwise I agree that a newtype-wrapped UTF-8 `ByteString` would make sense here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15210#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC