diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-01-15 06:51:58 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-15 07:12:23 -0500 |
commit | 2fce1f3c862845d23b2bd8305f97abb115623192 (patch) | |
tree | bffd9086a9fab8f8202303872da69ffa762c5bec /builtin-prune.c | |
parent | Don't create a final empty packfile in fast-import. (diff) | |
download | tgif-2fce1f3c862845d23b2bd8305f97abb115623192.tar.xz |
Optimize index creation on large object sets in fast-import.
When we are generating multiple packfiles at once we only need
to scan the blocks of object_entry structs which contain objects
for the current packfile. Because the most recent blocks are at
the front of the linked list, and because all new objects going
into the current file are allocated from the front of that list,
we can stop scanning for objects as soon as we identify one which
doesn't belong to the current packfile.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'builtin-prune.c')
0 files changed, 0 insertions, 0 deletions