2 ms·
> Does the JSON-code change frequently enough to incur build cache misses and the full minute penalty? The moment you switch branches - it changes. If you dev
by wiseowise 2y ago
> Does the JSON-code change frequently enough to incur build cache misses and the full minute penalty?
The moment you switch branches - it changes.
If you develop for Android - it generates build for with hash name from some CMake/Gradle variables, the moment one of those changes (like AGP version) you get a new build dir and essentially have to compile from scratch.
- occz 2y agoIf you're on something reasonably smart like Bazel it will be able to determine whether the module itself has been changed and requires recompilation instead of running from cache.
- wiseowise 2y agoNice. We, and majority of Android projects, aren’t on Bazel, though.
- occz 2y agoThis is true, and it's kind of a bummer to be honest. There's some serious time being wasted on recompilation that could be avoided with a really sharp build system. Bazel comes with its own bag of sharp edges though so it's unfortunately not like you can just adopt it and be on your merry way.