Binary: Use ByteString's copy in getBS
authorBen Gamari <bgamari.foss@gmail.com>
Sat, 16 Jul 2016 21:41:46 +0000 (23:41 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 16 Jul 2016 21:41:47 +0000 (23:41 +0200)
commit24f5f368d8ed0b5f113c2753b2b2bdc99957dcb2
tree9f8782c4a4963d9f7f1b73ba34d9f30aad8a2378
parentffe4660510a7ba4adce846f316db455ccd91142a
Binary: Use ByteString's copy in getBS

It's unclear how much of an effect on runtime this will have, but if
nothing else the code generation may be a tad better since the system's
`memcpy` will be used.

Test Plan: Validate

Reviewers: simonmar, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2401
compiler/utils/Binary.hs