diff options
author | Austin Seipp <austin@well-typed.com> | 2016-05-20 03:25:08 +0000 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2016-05-21 16:55:16 +0000 |
commit | d9cb7a8a94daa4d20aa042cd053e20b491315633 (patch) | |
tree | aedce747b5202ab49da01a17c8dbebc13e313116 /compiler/ghc.mk | |
parent | a1f3bb8ca454f05fa35cb6b5c64e92f640380802 (diff) | |
download | haskell-d9cb7a8a94daa4d20aa042cd053e20b491315633.tar.gz |
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
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r-- | compiler/ghc.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 9f45a51842..45dbf3e313 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -491,6 +491,7 @@ compiler_stage2_dll0_MODULES = \ Lexeme \ ListSetOps \ Literal \ + LZ4 \ Maybes \ MkCore \ MkId \ |