Reuse the same buffer for all commits/tags in fast-import.
commit243f801d1d08753cd4eff2a23e245f7575c37ad5
authorShawn O. Pearce <spearce@spearce.org>
Mon, 28 Aug 2006 17:15:48 +0000 (28 13:15 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 14 Jan 2007 07:15:10 +0000 (14 02:15 -0500)
treeb4c6ea72c82727ab794a43ddd591fdea171d3100
parente2eb469d1ff9595882c8329ad415b1d7246769d0
Reuse the same buffer for all commits/tags in fast-import.

Since most commits and tag objects are around the same size and we
only generate one at a time we can reuse the same buffer rather than
xmalloc'ing and free'ing the buffer every time we generate a commit.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c