FastString: Reduce allocations of concatFS
authorBen Gamari <ben@smart-cactus.org>
Tue, 5 Jul 2016 00:33:57 +0000 (20:33 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 8 Jul 2016 13:06:23 +0000 (15:06 +0200)
commit91fd87e2384091f1872f91953e83b299d8e1478f
tree945d836e82b12b2449762ec4788cccbb78d9b992
parentb8cd94d631ccccf7c94dda2eceb39650faf7d568
FastString: Reduce allocations of concatFS

Instead of unpacking and then repacking we simply concatenate all of the
individual ByteStrings.
compiler/utils/FastString.hs