Skip to content

Commit

Permalink
builtin-prune: memory diet.
Browse files Browse the repository at this point in the history
Somehow we forgot to turn save_commit_buffer off while walking
the reachable objects.  Releasing the memory for commit object
data that we do not use matters for large projects (for example,
about 90MB is saved while traversing linux-2.6 history).

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 5, 2007
1 parent 244a70e commit 16157b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-prune.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
usage(prune_usage);
}

save_commit_buffer = 0;

/*
* Set up revision parsing, and mark us as being interested
* in all object types, not just commits.
Expand Down

0 comments on commit 16157b8

Please sign in to comment.