Ahhh. At least for me, that explains a lot. Rather than spending all
its time in inflate_fast(), git is dealing with lots of zlib
startup/shutdown overhead.
Although it sounds like zlib could indeed be optimized to reduce its
startup and shutdown overhead, I wonder if switching compression
algorithms to a pure Huffman or even RLE compression (with associated
lower startup/shutdown costs) would perform better in the face of all
those small objects.
And another random thought, though it may be useless in this thread: I
bet using a pre-built (compiled into git) static zlib dictionary for git
commit and tree objects might improve things a bit.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html