compiler/iface: compress .hi files

Authored by austin.


compiler/iface: compress .hi files

Compress all interface files generated by the compiler with LZ4. While
having an extremely small amount of code, LZ4 is both very fast at
compression and decompression while having quite good space saving

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 <>

Test Plan: I ran ./validate

Reviewers: hvr, bgamari, thomie

Subscribers: duncan

Differential Revision:


thomieAug 23 2015, 1:08 PM
Differential Revision
D1159: compiler/iface: compress .hi files
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Commit No Longer Exists

This commit no longer exists in the repository.