compiler/iface: compress .hi files

Authored by austin on May 19 2016, 10:25 PM.

Description

compiler/iface: compress .hi files

Compress all interface files generated by the compiler with LZ4. While
being only a tiny amount of code, LZ4 is both fast at compression and
decompression, and has good compression ratios.

Non-scientific size test: size of stage2 compiler .hi files:

find ./compiler/stage2 -type f -iname '*.hi' -exec du -ch {} + | grep total$

Without this patch: 22MB of .hi files for stage2.
With this patch: 9.2MB of .hi files for stage2.

Signed-off-by: Austin Seipp <austin@well-typed.com>

Reviewed By: bgamari

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

Details

Committed
austinMay 21 2016, 11:55 AM
Reviewer
bgamari
Differential Revision
D1159: compiler/iface: compress .hi files
Parents
rGHCa1f3bb8ca454: Fix failing T12010
Branches
Unknown
Tags
Unknown
Reverted By
rGHC9bb277269ec0: Revert "compiler/iface: compress .hi files"