/plushcap/analysis/buildbuddy/buildbuddy-how-bazel-7-0-makes-your-builds-faster

How Bazel 7.0 Makes Your Builds Faster

What's this blog post about?

Bazel 7.0 introduces numerous optimizations aimed at speeding up builds for users. These improvements include faster loading and analysis phases due to Starlark interpreter optimizations, quicker execution of actions that output symlinks or large tree artifacts, and better default CPU utilization in containers on Linux. Additionally, the Android rules have added persistent worker support to more actions, and remote caching and execution processes are now more efficient. The BLAKE3 hash function is also supported for file digest computation, which can be significantly faster than SHA-256 for large files. Furthermore, Build without the Bytes feature has seen performance enhancements and bug fixes, making it the default value for the --remote_download_outputs flag in Bazel 7.0. Lastly, Bzlmod lockfile is now stable, offering faster fresh Bazel server launches and offline build capabilities.

Company
BuildBuddy

Date published
Jan. 8, 2024

Author(s)
Brentley Jones

Word count
807

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.