Google Open-Sources ABFS to Accelerate Large Git Repositories

Google has open-sourced ABFS, a new tool designed to slash development times for massive Git repositories by replacing traditional checkouts with virtualized file streaming.

The system, which stands for Another Build File Service, aims to solve the performance bottlenecks inherent in handling large-scale codebases like Android. By utilizing a content-addressable filesystem, ABFS enables developers to mount multiple concurrent workspaces on a single machine while significantly reducing resource overhead.

According to Google, the tool reduces Android checkout times from approximately 36 minutes to under 8 seconds, while full build times drop from about 80 minutes to just over 2 minutes.

At its core, the technology replaces massive local source checkouts with CASFS, a custom Linux kernel module that streams files on demand only when they are accessed by a build process.

By exposing Git SHA content hashes via extended attributes, the system allows for the downloading of metadata alone, deferring the retrieval of actual file contents until necessary. To maintain build integrity, the system employs two-phase caching through a component called Ninja-go.

This process verifies that files read during an original build match the current filesystem state before reusing cached artifacts, rejecting stale candidates to preserve correctness. Jim Downling, CEO of Hopsworks, characterized the move as part of a wider trend of rewriting systems software to accommodate the massive codebases required by modern AI coding agents. Ater.tech CTO Vladimir Churyukin argued that content addressing can become a major bottleneck itself, suggesting that versioned, copy-on-write filesystems could offer a more efficient, metadata-based alternative for detecting file differences. Dishant Sharma observed that the speed improvements provided by ABFS could be relatively smaller for repositories already utilizing partial clones or commit-graphs, where a substantial portion of the traditional checkout cost has already been mitigated. Google intends for the service to extend beyond its internal use in Android, with plans to support Bazel and Chromium environments.

The transition toward specialized systems software reflects a wider shift in how development environments accommodate AI agents. Hopsworks CEO Jim Downling said that this effort follows the recent release of Git on S3 by Cursor, representing a growing industry trend of re-engineering infrastructure to manage the massive scale of modern codebases.

While the performance metrics for ABFS are significant, the actual impact may vary depending on the repository’s current configuration. Dishant Sharma observed that the performance improvements offered by the service might be less dramatic for projects already utilizing partial clones or commit-graphs.

In those specific instances, a large portion of the traditional checkout latency is already mitigated by existing Git features. This suggests that the utility of ABFS as a replacement for standard workflows is most pronounced in environments that have yet to adopt these optimization techniques.

Photo of author

Technology Desk

Technology Desk at Archyde.

Instarem Suspends All Services, Freezes Amaze Cards After Detecting Irregular Activity