author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 28 Aug 2006 17:15:48 +0000 (13:15 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 14 Jan 2007 07:15:10 +0000 (02:15 -0500) | ||
commit | 243f801d1d08753cd4eff2a23e245f7575c37ad5 | |
tree | b4c6ea72c82727ab794a43ddd591fdea171d3100 | tree | snapshot |
parent | e2eb469d1ff9595882c8329ad415b1d7246769d0 | commit | diff |
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>
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 | diff | blob | history |