diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-08-28 13:02:51 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-14 02:15:10 -0500 |
commit | e2eb469d1ff9595882c8329ad415b1d7246769d0 (patch) | |
tree | bee2c6b297fbf6298e8470577bb93db659e595c6 /revision.h | |
parent | Implemented tree delta compression in fast-import. (diff) | |
download | tgif-e2eb469d1ff9595882c8329ad415b1d7246769d0.tar.xz |
Recycle data buffers for tree generation in fast-import.
We only ever generate at most two tree streams at a time. Since most
trees are around the same size we can simply recycle the buffers from
one tree generation to the next rather than constantly xmalloc'ing
and free'ing them. This should perform slightly better when handling
a large number of trees as malloc has less work to do.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'revision.h')
0 files changed, 0 insertions, 0 deletions