Use half as much memory when reading interfaces
authorReid Barton <rwbarton@gmail.com>
Thu, 23 Feb 2017 18:54:36 +0000 (13:54 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Feb 2017 22:26:44 +0000 (17:26 -0500)
commit12e21d35ee1b77f5f2bb8bd747848f07a32d592f
treee9e05af3e3f0557fb74fe27694520c20aa3940e1
parentbb1c660f3e0f1b471eb74cbb02275b97db3fa8b4
Use half as much memory when reading interfaces

I don't see any reason for the (filesize*2), and experimentally
allocations do go down slightly after this change.

Test Plan: validate

Reviewers: simonmar, austin, bgamari, trofi

Reviewed By: bgamari, trofi

Subscribers: trofi, thomie

Differential Revision: https://phabricator.haskell.org/D3164
compiler/utils/Binary.hs
testsuite/tests/perf/space_leaks/all.T