Hacker GitHub

← All repos

mozilla/sccache

View on GitHub ↗ ★ 7,865 Rust

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

50 mentions on Hacker News by 43 people: 7 stories, 43 comments · first 2016-11-22 · latest 2026-10-01

Mentions per year 50 mentions · busiest year 2023 (11)
20082026
  1. You should have set up https://github.com/mozilla/sccache at minimum. Setting up compiler caching is routine for people coming from older compiled language backgrounds but it's often missed by people coming from languages like JS/TS who…
  2. …was probably compiling dependencies. If you give it another go, I would recommend a shared sccache. https://github.com/mozilla/sccache
  3. sccache can, but most of us don't have access to an sccache instance: https://github.com/mozilla/sccache
    comment by 01HNNWZ0MV43FF · 2026-04-13 · in How to make Firefox builds 17% faster
  4. …[2] https://docs.conda.io/projects/conda/en/latest/user-guide/co... [3] https://github.com/mozilla/sccache
    comment by goku12 · 2025-10-16 · in Why You Should Be Using Git Worktrees
  5. …but it gets you to a relatively pleasant speed still IME [1] https://github.com/rui314/mold [2] https://github.com/mozilla/sccache [3] https://github.com/rust-lang/rustc_codegen_cranelift
    comment by chiffaa · 2025-08-28 · in Unexpected productivity boost of Rust
  6. You can: https://github.com/mozilla/sccache
    comment by jakkos · 2025-06-12 · in Rust compiler performance
  7. https://github.com/mozilla/sccache
    comment by Cyph0n · 2025-02-04 · in Roc rewrites the compiler in Zig
  8. …builds if you have a few machines sitting idle. (This is like distcc with extra features). [1]: https://github.com/mozilla/sccache
  9. sccache can help with compile times: https://github.com/mozilla/sccache
    comment by tempodox · 2024-09-23 · in One Year of Rust in Production
  10. Use icecream or sccache. sccache optionally supports distributed builds. https://github.com/mozilla/sccache/blob/main/docs/Distribute...
    comment by hi-v-rocknroll · 2024-04-29 · in Speeding up C++ build times
  11. They probably mean tools like distcc or sccache: https://github.com/distcc/distcc https://github.com/mozilla/sccache
  12. …by configuring the CCACHE_BASEDIR option. There doesn't seem to be an exact equivalent in sccache. https://github.com/mozilla/sccache/issues/35
    comment by slavik81 · 2023-12-24 · in Mozilla sccache: ccache with cloud storage
  13. Worth noting that the first commit in sccache git repository was in 2014 ( https://github.com/mozilla/sccache/commit/115016e0a83b290dc2... ). So I suppose that what "happened" happened waay back. Then in 2016 it seems like sccache was…
    comment by CaptainOfCoit · 2023-12-24 · in Mozilla sccache: ccache with cloud storage
  14. So does project like Mozilla sccache. - https://github.com/mozilla/sccache
    comment by wey-gu · 2023-12-22 · in Welcome to Apache OpenDAL
  15. I'm going to set up sccache [0] to use it tomorrow. We use MSVC, so EFS is off the cards. [0] https://github.com/mozilla/sccache/blob/main/docs/S3.md
    comment by maccard · 2023-11-28 · in S3 Express Is All You Need
  16. https://github.com/mozilla/sccache is another option which addresses the use cases of both icecream and ccache (and also supports Rust, and cloud storage of artifacts, if those are useful for you)
  17. …well-known and that this comment is really more directed at TFA. [0] https://tangramvision.com [1] https://github.com/mozilla/sccache
  18. …binary and two lines of configuration to have a cache around rustc, so it's worth testing out. 1: https://github.com/mozilla/sccache
  19. …only two steps to install it and enable it globally, speeds up compilation time a lot as well: https://github.com/mozilla/sccache
    comment by jackosdev · 2023-01-26 · in Pip and cargo are not the same
  20. …clean + full build cycles there's sccache[1]. [0] https://github.com/rust-lang/rust/pull/84762 [1] https://github.com/mozilla/sccache
  21. Also see mozilla/sccache for Rust. https://github.com/mozilla/sccache
    comment by quocanh · 2022-11-24 · in Ccache – a fast C/C++ compiler cache
  22. …here, and nopt only does it do that it does so _without sacrificing performance_ in many cases. [0] https://github.com/mozilla/sccache/blob/main/src/compiler/gc...
    comment by maccard · 2022-11-18 · in Rust in the 6.2 kernel
  23. …as flexible or powerful as Bazel, but also vastly simpler to setup if all you want is caching. https://github.com/mozilla/sccache
    comment by wongarsu · 2022-07-28 · in Rust is actually portable
  24. …not more. The binary cache is available in other flavours too. If you don't use go, then sccache ( https://github.com/mozilla/sccache ) may be useful.
    comment by viraptor · 2022-06-26 · in We Halved Go Monorepo CI Build Time
  25. My first contribution to a Rust codebase was < https://github.com/mozilla/sccache/commit/da2934fcc2ed2a4ae2... >. It is adding the -fminimize-whitespace flag to the preprocessor command when available (New in Clang 14, <…
    comment by meinersbur · 2022-05-12 · in Sccache – Shared Compilation Cache
  26. Sure, but they're nothing special, just lifted the recommendations from sccache and mold. sccache: https://github.com/mozilla/sccache#usage mold: https://github.com/rui314/mold#how-to-use My own cargo.toml: [build] rustc-wrapper =…
  27. There is sccache ( https://github.com/mozilla/sccache ) so a first step would be looking to see why it isn't used more to see how to lower that barrier. Another idea is crate-build caching so local and CI can pull down a pre-built…
  28. I'm not sure what you mean by a build cache, does sccache suit? https://github.com/mozilla/sccache
    comment by rhooke · 2021-08-10 · in Rust in Production: Qovery
  29. Have you tried sccache? https://github.com/mozilla/sccache
  30. …code is well-structured Rust and not too big, adding a cloud backend would be a nice project. [1] https://github.com/mozilla/sccache
    comment by georgewfraser · 2021-06-03 · in Distributed Cloud Builds for Everyone
  31. …like sccache[0] can help with that in CI pipelines and when getting a new dev environment up. [0]: https://github.com/mozilla/sccache
  32. …that I think bazel also does a bunch of these, but you need to use bazel as your build system. [0] https://github.com/mozilla/sccache [1] quickstart - https://github.com/mozilla/sccache/blob/master/docs/Distribu... [2] reference docs -…
  33. https://github.com/mozilla/sccache
  34. …using sccache. It saved a lot of compile time for me. You can find how to install and use it here: https://github.com/mozilla/sccache
  35. …by most, but FWIW sccache has been pretty freakin' great for me at keeping build times manageable: https://github.com/mozilla/sccache And, LOL, just now finally read the readme, didn't even know I could archive the the cache over the…
    comment by rubyn00bie · 2020-06-29 · in A Few More Reasons Rust Compiles Slowly
  36. …personally only used it locally for my Rust builds. [0]: https://github.com/icecc/icecream [1]: https://github.com/mozilla/sccache
    comment by saghm · 2020-01-29 · in Hacking on Clang is surprisingly easy
  37. …instead of building the whole world from scratch. This already exists and is easy to use: https://github.com/mozilla/sccache
    comment by steveklabnik · 2019-10-22 · in An Intern's Experience with Rust
  38. …(or mount an NFS share as the CARGO_TARGET_DIR, if you’re feeling adventurous or want fast CI) [0] https://github.com/mozilla/sccache
    comment by _nhynes · 2019-08-21 · in Thoughts on Rust bloat
  39. …use sccache to at least save the time spent to compile the same version of a crate more than once. https://github.com/mozilla/sccache
    comment by saghm · 2019-04-11 · in Rust 1.34.0
  40. …10 minutes (there's quite a lot to build and test). If I could, I would love to have an sccache ( https://github.com/mozilla/sccache ) compatible distributed free caching solution for my C++ projects. That'd be a killer feature!
  41. I've been using sccache ( https://github.com/mozilla/sccache ) lately, and it mostly solves this problem for me (although I agree with what others have mentioned that the issue isn't that much of a deal-breaker for me given how…
  42. You're thinking of https://github.com/mozilla/sccache which is not quite the same thing.
    comment by steveklabnik · 2018-02-15 · in Rust 1.24
  43. …they're generally placed within the relevant source file in the tree, like the cache tests here: https://github.com/mozilla/sccache/blob/6eadccc9d6752747766d... I also wrote some higher-level tests that test the server functionality:…