incr.comp.: Allow for re-using object files that contain unused code. #48212
Labels
A-incr-comp
Area: Incremental compilation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right now, incremental compilation can only re-use an object file if it is an exact match of that code that we want. In theory it would be possible though to keep using an object file that contains a superset of the code we need.
An implementation would probably need #48211 to be implemented first. CGU translation would also need to be de-querified since the re-use decision cannot be made by simply marking the CGU as green.
However, before putting effort into implementing this we should make sure that it would actually pay off. For this we need to collect some data on
MonoItem
invalidation (which again is covered by #48211).The text was updated successfully, but these errors were encountered: