Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement incremental caching of object files #918

Merged
merged 2 commits into from
Mar 11, 2020
Merged

Implement incremental caching of object files #918

merged 2 commits into from
Mar 11, 2020

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Mar 11, 2020

It is only enabled when the CG_CLIF_INCR_CACHE env var is set to prevent accidentally caching object files in the incremental cache while modifying cg_clif. Otherwise it would be necessary to completely disable the incremental cache during development, which makes the sysroot build much slower.

Fixes #760

@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. compile-time How fast is the code compiled labels Mar 11, 2020
@bjorn3
Copy link
Member Author

bjorn3 commented Mar 11, 2020

Currently running the rustc-perf suite. Hopefully this makes the incremental benches mostly green too, like the non-incremental benches.

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 11, 2020

I think something went wrong with the incremental benches. The results for cg_clif are still as horrible as before.

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 11, 2020

I think it is now correctly benchmarking. I moved the CG_CLIF_INCR_CACHE=1 from the ./target/release/collector invocation to the source of the collector.

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 11, 2020

Posted results in #878 (comment). tl;dr: most incremental benchmarks are now faster with cg_clif than with cg_llvm, but there are still regressions.

@bjorn3 bjorn3 merged commit c2962a6 into master Mar 11, 2020
@bjorn3 bjorn3 deleted the incr_cache branch March 11, 2020 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. compile-time How fast is the code compiled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache compiled codegen units in incremental cache
1 participant