Remote GHCi: batch the creation of strings
authorSimon Marlow <marlowsd@gmail.com>
Mon, 1 Feb 2016 16:19:10 +0000 (16:19 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 2 Feb 2016 08:04:11 +0000 (08:04 +0000)
commit7cb1fae2d6ec90b10708a2631cd1069561177bd4
tree0e22fd5c2ff258dffb3efa53379727d56af2c1f6
parent2fb6a8c30567e7d071ffcf88e22ea7f72f60b826
Remote GHCi: batch the creation of strings

Summary:
This makes a big performance difference especially when loading a
large number of modules and using parallel compilation (ghci -jN).

Test Plan:
* validate
* `ghci -fexternal-interpreter` in `nofib/real/anna`

Reviewers: niteria, bgamari, ezyang, austin, hvr, erikd

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1876

GHC Trac Issues: #11100
compiler/ghci/ByteCodeAsm.hs
compiler/ghci/ByteCodeGen.hs
compiler/ghci/ByteCodeLink.hs
compiler/ghci/ByteCodeTypes.hs
libraries/ghci/GHCi/Message.hs
libraries/ghci/GHCi/Run.hs
libraries/ghci/SizedSeq.hs