Skip to content

Don’t use `String` when generating code

GHC uses String when generating code, which is very slow. It would be much better to switch to Data.ByteString.Builder, or better yet output executables directly rather than going through an assembler.

This applies to both the native and LLVM code generators.

Trac metadata
Trac field Value
Version 8.2.1
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (CodeGen)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information