Compile Cache - CI/CD用語集の定義
compile cache は、ソースファイルのコンパイル出力をその内容とフラグをキーとして保存するため、変更されていないファイルは再コンパイルされずに取得されます。
compile cache は、ソースファイルのコンパイル出力をその内容とフラグをキーとして保存するため、変更されていないファイルは再コンパイルされずに取得されます。
ccache や sccache などの compile cache は、変更されていないコードの繰り返しの build をほぼ瞬時の cache 復元に変えます。
キーの仕組み
cache は前処理済みのソースとコンパイラフラグをハッシュ化してキーにします。同じキーが以前に見られていれば、cache されたオブジェクトファイルが返されます。そうでなければコンパイラが実行され、結果が保存されます。
関連ガイド
Incremental Compilation - CI/CD Glossary DefinitionIncremental Compilation: Incremental compilation recompiles only the parts of a program affected by a change,…
What Is a Remote Cache?A remote cache stores build outputs in a shared, networked location so they can be reused across machines, CI…
What Is a Cache Key?A cache key is the identifier that determines which cached entry a lookup retrieves, typically derived from t…