Skip to content

feat/packaging: build Sourcegraph Git with zlib-ng - #16

Merged
keegancsmith merged 1 commit into
sourcegraphfrom
k/zlib-ng-build
Sep 10, 2026
Merged

feat/packaging: build Sourcegraph Git with zlib-ng#16
keegancsmith merged 1 commit into
sourcegraphfrom
k/zlib-ng-build

Conversation

@keegancsmith

Copy link
Copy Markdown
Member

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.3 after the stock-zlib v2.55.0-2 release.

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
keegancsmith marked this pull request as ready for review September 10, 2026 13:06
@keegancsmith
keegancsmith merged commit 17d1504 into sourcegraph Sep 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant