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

feat(flake): use sccache in the dev shell #4360

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Feb 18, 2024

This should improve compilation times when switching between branches etc.

You can view the sccache with sccache --show-stats:

> sccache --show-stats
Compile requests                   2093
Compile requests executed          1501
Cache hits                         1150
Cache hits (Rust)                  1150
Cache misses                        339
Cache misses (Rust)                 339
Cache timeouts                        0
Cache read errors                     0
Forced recaches                       0
Cache write errors                    0
Compilation failures                 11
Cache errors                          0
Non-cacheable compilations            0
Non-cacheable calls                 592
Non-compilation calls                 0
Unsupported compiler calls            0
Average cache write               0.008 s
Average compiler                  0.564 s
Average cache read hit            0.004 s
Failed distributed compilations       0

Non-cacheable reasons:
crate-type                          456
incremental                         125
-                                    11

Cache location                  Local disk: "/home/dpc/.cache/sccache"
Use direct/preprocessor mode?   yes
Version (client)                0.7.4
Cache size                          937 MiB
Max cache size                       10 GiB

@dpc dpc requested a review from a team as a code owner February 18, 2024 23:36
@justinmoon justinmoon added this pull request to the merge queue Feb 19, 2024
Merged via the queue into fedimint:master with commit 412aaf9 Feb 19, 2024
20 checks passed
@justinmoon
Copy link
Contributor

dev call: implications for disk usage?

@dpc
Copy link
Contributor Author

dpc commented Feb 20, 2024

dev call: implications for disk usage?

Cache size                          937 MiB
Max cache size                       10 GiB

It auto-GCs and is capped at 10GiB (can be changed locally by the user).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants