Tech • AI • Robotics • Game

ENFR

Scaling Slop

7/10
AIThe PrimeTimeNovember 27, 2026 at 02:00 PM13:15
Audio player

⏱ ≈ 3 min read · 13-min video — 10 min saved

TL;DR

OpenAI has outlined a new distributed Git backend that speeds up large-scale pushes and fetches by relaxing repository-wide consistency, reusing uploaded pack files, and locking individual branches instead of entire repositories.

KEY POINTS

Why existing Git hosting struggles

Traditional large-scale Git hosting relies on pack files and a commit workflow that becomes costly under heavy concurrency. In common deployments, pushes are coordinated across multiple machines using a three-phase commit, including a locking step that can stall other writes. That design is reliable, but it becomes slow when systems handle roughly 10,000 pushes per hour or similarly heavy traffic.

How standard Git push and fetch add overhead

In normal Git operation, clients and servers first compare what objects each side already has, then build a minimal pack file containing only the missing commits, trees, and blobs. The same logic applies in reverse for fetches, with servers calculating the smallest possible response for each client. That saves bandwidth, but it requires repeated CPU and disk work to compute highly optimized pack files.

Two constraints were relaxed

The new design drops strict repository-wide consistency and the requirement to generate a unique pack file for every client. In practice, that means two users fetching at the same time may receive slightly different snapshots of noncritical branches if updates arrive mid-request. For large repositories with thousands of branches, that trade-off is often acceptable because most workflows depend on a target branch, not on every branch being synchronized to the same instant.

Store and reuse the uploaded pack files

Instead of unpacking every pushed pack file into a local repository and recomputing ideal responses later, the system validates that the upload is structurally acceptable and stores it directly in a metadata layer. The uploaded pack file is then referenced by a URI and can be returned later to other clients. This means the service often avoids expensive repacking and simply serves a previously stored blob that already contains the needed history, even if it includes some duplicate objects.

Less efficient on bytes, faster in practice

The approach intentionally sends more data than the theoretical minimum. A client may receive objects it already has, or upload commits bundled with duplicates. But the system gains speed by avoiding repeated optimization work on the server side. In modern infrastructure, the extra network transfer can be cheaper than burning compute and storage I/O to save only a few kilobytes per request.

Branch-level locking replaces repository-wide locks

One of the most important changes is per-branch locking. If one user updates foo and another updates bar, the two operations no longer need to block each other behind a single repository-wide lock. That fits Git’s immutable object model, where independent branch updates can proceed safely in parallel unless they touch the same reference.

Architecture favors sharding and scale

The metadata layer is designed more like a shardable blob store than a traditional monolithic Git repository. Pack files can be partitioned by branch or branch groups, making it easier to distribute load across machines. Fetches also become simpler because the system can return a stored pack file reference instead of assembling a custom response from scratch.

Formal methods and implementation details

The system is implemented in Rust and was formally verified with Lean, reflecting a broader push toward mathematically checked infrastructure software. That matters for a storage and coordination layer handling concurrent writes, where subtle correctness bugs can be hard to detect and expensive to recover from.

Performance impact stands out

Benchmark comparisons presented for 10,000 pushes acknowledged and 10,000 fetches showed the new system, called Po, finishing far faster than more traditional three-phase commit approaches and another object-wall-store design. The gains appear to come less from a single optimization than from a set of practical choices: fewer global locks, less repacking, and more direct reuse of uploaded data.

CONCLUSION

The design reflects a pragmatic shift in distributed version control infrastructure: trading perfect minimality for higher throughput and simpler concurrency. For large engineering organizations, that could make Git significantly faster without changing how developers use it.

Ask a question

More from AI