Google open-sources ABFS to speed up builds of massive Git repositories
Google has released ABFS (Another Build File Service)[1] as open source, a set of tools that reduces source sync and build bottlenecks in very large Git projects. On Android, checkout time dropped from about 36 minutes to under 8 seconds, and a full build dropped from about 80 minutes to a little over 2 minutes. The benchmark ran Android three times on a GCE n2d-standard-64 VM and averaged the results.
ABFS uses CASFS[2], a Linux kernel file system module that shows Git SHA content hashes as extended attributes and downloads file contents only when they are first read. Build caching works in two stages: the first looks up candidate results by declared inputs, and the second checks the files the build actually read against the current state. If a hidden dependency has changed, the stale result is rejected, which Ninja-go[3] does in place of timestamp checks.
Multiple Android workspaces can be mounted on one machine and share a local build cache. The article says ABFS is designed for other large Git projects, that Chromium and Android Common Kernel are reviewing compatibility, and that a Bazel proof-of-concept integration already exists.
Repository ABFS github.com
Open source toolset from Google that speeds up source sync and builds of very large Git repositories, such as Android.
Google shares (GOOGL)
265.29 USD 0.0% since the news day, November 21
Close on November 20 Quotes: CNBC Chart by TradingView
Read the original developers.googleblog.comDiscussion on GeekNews
Sources
-
KRGeekNews KO
초대형 Git 저장소의 개발 속도 높이기


