News for hackers. Stuff that matters.
Re:How to make Firefox builds 17% faster by evmar on Monday April 13, 2026 @09:01PM (#47759960)
I’m not too familiar with Firefox builds. Why are clobber builds common? At first glance it seems weird to add a cache around your build system vs fixing your build system.
Re:How to make Firefox builds 17% faster by jagged-chisel on Monday April 13, 2026 @10:00PM (#47760368)
Define “fixing.” If you’re building on ephemeral containers, an external cache is necessary for files that don’t change.
Re:How to make Firefox builds 17% faster by mbitsnbites on Tuesday April 14, 2026 @02:16AM (#47761887)
Though I'm not actively working with Firefox so can't speak for their use cases, one important use case for clobber builds is CI.

I'm the author of BuildCache, and where I work we make thousands of clobber builds every day in our CI. Caching helps tremendously for keeping build times short.

There are a few use cases for local development too. For instance if you switch between git branches you may have to make near full rebuilds (e.g. in C++ if some header file is touched that gets included by many files).

Another advantage as a local dev is that you can tap into the central CI cache and when you pull the latest trunk and build it, chances are that the CI system has already built that version (e.g. as part of a merge gate) so you will get cache hits.

Re:How to make Firefox builds 17% faster by evmar on Tuesday April 14, 2026 @03:16AM (#47762313)
I see, I might be confused by the terminology. "clobber" to me suggests intentionally trying to throw away cached results (clobbering what you have), but it sounds like you might just use it to mean builds where you don't have any existing build state already present.
Re:How to make Firefox builds 17% faster by secondcoming on Tuesday April 14, 2026 @03:13AM (#47762294)
What even is a 'clobber build'?
Re:How to make Firefox builds 17% faster by __farre__ on Tuesday April 14, 2026 @04:00AM (#47762672)
Sorry for being unclear. I'm using Firefox build system lingo without explanations. It's from the command `./mach clobber`, which is similar but not the same as `make clean`. I use 'clobber build' as "a build with no existing build state" and the qualifiers "cold" and "warm" to indicate if cache is empty or filled.
Re:How to make Firefox builds 17% faster by secondcoming on Tuesday April 14, 2026 @07:53AM (#47764416)
Ah ok, thanks