BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Google Open-Sources ABFS to Accelerate Development in Large Git Repositories

Google Open-Sources ABFS to Accelerate Development in Large Git Repositories

Listen to this article -  0:00

Recently released on GitHub, Google ABFS (Another Build File Service) aims to accelerate development on large Git repositories by reducing checkout and build times. Originally developed to speed up Android builds, ABFS is being extended to work with Bazel and Chromium.

According to Google, ABFS grants significant improvements on Android's codebase, reducing checkout times from ~36 minutes to under 8 seconds and full build times from ~80 minutes to just over 2 minutes.

ABFS makes building Android fast by replacing massive local source checkouts with a virtual, content-addressable filesystem (CASFS). ABFS streams files on demand only when a build actually touches them and utilizes shared build caching to help eliminate redundant downloads and compilation.

Beyond checkout and build speedups, ABFS enables parallel agentic workflows, which often requires duplicating substantial amount of work and improves shared cache reuse across CI and developers workspaces.

Because ABFS does lazy loading and local cache deduplication, developers and their agents can now mount multiple concurrent Android workspaces on a single machine, benefit from a shared local build cache, and achieve massive scale in development time.

ABFS combines CASFS, a custom Linux kernel module, with local caching daemons and server-side infrastructure to stream source files on demand only when needed, eliminating the need to download entire repositories upfront.

At the core of ABFS, CASFS exposes Git SHA content hashes via extended attributes. Thanks to this approach, checking out a directory requires only downloading its metadata, while file contents are downloaded when accessed. CASFS implements Git's object model natively, so all repo operations work transparently.

Another key mechanism in ABFS is two-phase caching through Ninja-go, which enables developers and CI systems to reuse previous build artifacts across multiple workspaces and AI coding agents:

CASFS can also tap build processes. Tapping records every file actually read, written, or deleted into lists called patches, which are stored alongside cached build outputs. Ninja-go replaces timestamp checks with two-phase content-addressable caching.

The first phase hashes the build command, environment, and declared input files to identify potentially reusable build results. The second verifies that files actually read during the original build match the current filesystem state before using cached results. If there is a mismatch, ABFS rejects the stale candidate and reruns the step to preserve clean-build correctness.

Commenting on the announcement on LinkedIn, Hopsworks CEO Jim Downling noted that:

After Git on S3 this summer by Cursor, the trend has started of rewriting systems software to handle the massively increased codebases enabled by coding agents.

Ater.tech CTO Vladimir Churyukin expressed his concern that "content addressing is a huge bottleneck by itself" and suggested an alternative:

Another option, a bit more rigid but supported on filesystem level - if you have a versioned, CoW filesystem, there are other ways to detect differences, based on file metadata rather than content. Such a filesystem can be distributed too.

As a final comment, Dishant Sharma observed that the speedup brought by ABFS could be relatively smaller compared to "a repo already using partial clone or a commit-graph, where a good chunk of that checkout cost is already gone".

About the Author

Rate this Article

Adoption
Style

BT