feat/packaging: build Sourcegraph Git with zlib-ng - #16
Merged
Conversation
Object inflation is a significant part of Git runtime, and local benchmarking showed roughly 25% lower wall time with zlib-ng. Use its native API so it can coexist with ordinary zlib used by other dependencies, and link the pinned build statically to preserve relocatability. Share one checksum-verified dependency recipe across orb setup and Linux and macOS release builders, recording provenance and licensing in each archive. Keep plain orb make invocations on the same backend and verify that release artifacts neither acquire a dynamic zlib-ng dependency nor retain build-time macOS rpaths. Reserve sourcegraph/v2.55.0-3 for this follow-up so the stock-zlib v2.55.0-2 distribution can ship first. Sourcegraph Git distributions now use zlib-ng for faster object compression and decompression. Amp-Thread-ID: https://ampcode.com/threads/T-01a0863e-cefe-716b-a3d5-be8e3f40e19f Co-authored-by: Amp <amp@ampcode.com>
keegancsmith
marked this pull request as ready for review
September 10, 2026 13:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds Sourcegraph Git against the native zlib-ng API to improve object compression and decompression performance. Local packed-object benchmarking measured roughly 25% lower wall time, while static linking lets zlib-ng coexist with ordinary zlib used by other dependencies and preserves the archives’ relocatability.\n\nThe dependency is pinned by source commit and checksum through one recipe shared by orb setup and the Linux and macOS release builders. Archives record its provenance and license, and validation rejects dynamic zlib-ng dependencies or leaked macOS build rpaths. This advances the downstream identity to
2.55.0.sourcegraph.3after the stock-zlibv2.55.0-2release.