Google Open-Sources ABFS to Cut Android Checkout and Build Times
Google’s ABFS streams source files on demand and reuses build outputs. Android benchmarks show how strongly the gains depend on caching.
Google has released Another Build File Service, or ABFS, as open source. The project targets a recurring cost of working on large codebases: fetching a fresh source tree and rebuilding work that a colleague or a continuous integration job has already done. Android is the initial focus, with support for Bazel still under development.
What Google measured
In Google’s published Android test, a conventional checkout averaged 36 minutes and 19 seconds. Mounting the same source tree with ABFS and an empty local cache took 7.4 seconds. The mount makes the tree available immediately, with file contents fetched as needed.
A conventional build averaged 1 hour and 20 minutes. With a populated remote cache and an empty local cache, ABFS took 2 minutes and 11 seconds. A populated local cache brought that down to 1 minute and 19 seconds. With cache reuse disabled, the ABFS build took about 1 hour and 39 minutes. Google averaged three runs on a 64-vCPU cloud VM with the remote server on the same virtual private network. The results describe that setup and the amount of reusable work it had available.
How the filesystem and build cache work together
A Linux kernel module presents the source tree through a content-addressable filesystem. The client loads enough metadata to display the tree and retrieves file contents when a process reads them. Multiple workspaces can share locally cached content, which helps when developers or build jobs switch branches or work in parallel.
The build cache checks a candidate result against the action’s command, environment and inputs. It also checks the files the earlier action actually accessed. If those files differ, the action runs again. The extra checks have a cost, so reliable networking and repeatable build steps matter when deciding whether to deploy the system.
Sources: Google’s ABFS repository and benchmark methodology and InfoQ’s coverage.
Share
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0