summaryrefslogtreecommitdiff
path: root/compiler/ghc.mk
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2016-05-20 03:25:08 +0000
committerAustin Seipp <austin@well-typed.com>2016-05-21 16:55:16 +0000
commitd9cb7a8a94daa4d20aa042cd053e20b491315633 (patch)
treeaedce747b5202ab49da01a17c8dbebc13e313116 /compiler/ghc.mk
parenta1f3bb8ca454f05fa35cb6b5c64e92f640380802 (diff)
downloadhaskell-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.mk1
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 \