Get the latest tech news

IRHash: Efficient Multi-Language Compiler Caching by IR-Level Hashing


Tobias Landsberg and Johannes Grunenberg, Leibniz Universität Hannover; Christian Dietrich, Technische Universität Braunschweig; Daniel Lohmann, Leibniz Universität Hannover Compilation caches (CCs) save time, energy, and money by avoiding redundant compilations. They are provided by means of compiler wrappers (Ccache, sccache, cHash) or native build system features (Bazel, Buck2).

They are provided by means of compiler wrappers (Ccache, sccache, cHash) or native build system features (Bazel, Buck2). We evaluate IRHash against Ccache and cHash based on the development history of 16 open-source projects written in C, C++, Fortran, and Haskell. With an average build time reduction of 19% across all C projects, IRHash provides better end-to-end savings than Ccache (10%) and cHash (16%), while additionally supporting more languages.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of level hashing

level hashing

Photo of irhash

irhash

Photo of ir-

ir-