Does git-http-backend compress/uncompress the objects it sends?
It's not entirely clear to me how git-http-backend un/compresses the objects it sends to the client. After I see some messages saying that it did find and compress several objects on the server, on the开发者_开发技巧 client side, I see the objects appear almost one by one in the directory structure you'd expect.
I'm assuming it has GZIP'd each object on the server side for over-the-wire efficiency and then as it receives the objects and builds the repo on the client size it unzips each object right away. Is that correct? I guess I was expecting one big zip file sent and unzipped.
Yes, git-http-backend creates a custom packfile based on what objects are needed and sends it to the client. And the objects are zlib compressed.
From: http://progit.org/2010/03/04/smart-http.html
精彩评论