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

Clarification #34

Open
drahnr opened this issue Apr 26, 2022 · 3 comments
Open

Clarification #34

drahnr opened this issue Apr 26, 2022 · 3 comments
Labels
question Further information is requested

Comments

@drahnr
Copy link

drahnr commented Apr 26, 2022

Hey there, I am a contributor to sccache and initiator of cachepot and just stumbled upon this project.

Could you clarify how exactly the speedup gains are achieved? The README.md doesn't explain that and I see that under the hood it builds upon the sccache binary artifact.

CC @Xanewok

@suptejas
Copy link
Member

Sure - here's a rough breakdown of how we optimize performance:

Across All OS's:
Ramdisk (if the user is using a hard disk) OR always if the user is using WSL (3x speed improvement from our benchmarks)
Sccache (cache pre-compiled crates, especially effective with speeding up incremental builds at multi-crate cargo workspaces)
Share-generics (might be made optional soon, as our issues indicate we're trying to move to stable): -Zshare-generics=y

Increasing codegen-units, turning opt-level to 0 for debug builds.

Linux:
LLD (We're looking to change this to mold soon) Linker
Clang

Windows:
rust-lld.exe

MacOS:
ZLD Linker
-Csplit-debuginfo=unpacked

@suptejas suptejas added the question Further information is requested label Apr 26, 2022
@suptejas
Copy link
Member

On a different note, cachepot looks super cool 😄

@Lencof
Copy link

Lencof commented May 5, 2022

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

No branches or pull requests

3 participants