UPSTREAM PR #2465: feat: barebones initial server-side upload-pack implementation#32
UPSTREAM PR #2465: feat: barebones initial server-side upload-pack implementation#32
Conversation
OverviewAnalysis of 27,956 functions across two binaries shows negligible performance impact. Modified: 473 functions (1.69%), New: 1,578 (server-side features), Removed: 1,578, Unchanged: 24,327. Binaries analyzed:
Function AnalysisAll analyzed functions show compiler-level optimizations with no source code changes:
Other analyzed functions showed sub-10ns changes in error handling and statistics serialization. None of the modified functions are in performance-critical paths (object lookup, pack operations, diffing, status computation). Changes result from binary layout adjustments and LLVM optimization passes during recompilation. The 12 commits add comprehensive server-side Git protocol support (gix-serve, upload-pack V1/V2) with minimal impact on existing client operations. 🔎 Full breakdown: Loci Inspector |
2c4a72b to
167bdd1
Compare
d414008 to
a614ce3
Compare
|
The flame graphs show the transformation from trivial 22ns execution (base) to complex 9.4ms execution (target) with UI rendering operations (pane, headline, render functions) consuming 75% of execution time. This indicates prodash TUI rendering is incorrectly linked into thread-local storage access paths in the ein binary. Additional FindingsCommit context: 14 commits by JamesPatrickGill add server-side Git protocol support (gix-serve crate, upload-pack orchestration, ref advertisement, pack generation). Changes represent intentional feature expansion rather than refactoring. Architectural observation: The ein binary-specific thread-local regression suggests build configuration or feature flag differences between gix and ein binaries. Gitoxide's architecture explicitly avoids thread-local rendering (uses Arc-based sharing with separate UI threads), making this regression particularly concerning as it contradicts design intent. 🔎 Full breakdown: Loci Inspector |
9b41e5f to
1f13824
Compare
95ef755 to
a9e7940
Compare
a614ce3 to
eaec1bc
Compare

Note
Source pull request: GitoxideLabs/gitoxide#2465
tl;dr
I am building a git forge, needed server-side git functionality, found gitoxide, liked it, decided to build on it. This is me attempting to upstream it.
Hey!
Sorry if me opening this PR out of the blue and is not the process but I have recently started building a small toy git forge in Rust for some fun and when it came to the "git" part I came across gitoxide and really liked it. However, I noticed that the server-side support was not ready for me to build what I wanted, this is my assumption from reading the code anyway.
So I was interested enough to just try to implement it myself and this is what this PR contains. I attempted to go as shallow as possible as to have something to maybe discuss if this is something gitoxide is interested in before I got carried away into all the nitty gritty. That being said it does do some (very little) real stuff:
What is here:
ACK/NAK writers, and upload-pack orchestrators for both protocol versions
objects, and a top-level serve_upload_pack() entrypoint
There are a lot of caveats though...
Caveats:
However despite being pretty far from done I have an ssh server in my git forge able to serve
git clonerequests - this can be seen here: https://github.com/JamesPatrickGill/steidI am very open to guidance and getting this ship shape if you see value. I attempted to match conventions from other crates in the repo as closely as possible.