diff options
author | Linus Torvalds <torvalds@osdl.org> | 2006-06-17 18:26:18 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-17 18:49:45 -0700 |
commit | d3ff6f55012c939740ce0982b24aeb6fba3c6e4f (patch) | |
tree | 3784f041b9ceb25a8092b85f1d86119da7bc5a45 /t/t4101/diff.0-2 | |
parent | Shrink "struct object" a bit (diff) | |
download | tgif-d3ff6f55012c939740ce0982b24aeb6fba3c6e4f.tar.xz |
Move "void *util" from "struct object" into "struct commit"
Every single user actually wanted this only for commit objects, and we
have no reason to waste space on it for other object types. So just move
the structure member from the low-level "struct object" into the "struct
commit".
This leaves the commit object the same size, and removes one unnecessary
pointer from all other object allocations.
This shrinks memory usage (still at a fairly hefty half-gig, admittedly)
of "git-rev-list --all --objects" on the mozilla repo by another 5% in my
tests.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t4101/diff.0-2')
0 files changed, 0 insertions, 0 deletions