Move "void *util" from "struct object" into "struct commit"
authorLinus Torvalds <torvalds@osdl.org>
Sun, 18 Jun 2006 01:26:18 +0000 (18:26 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 18 Jun 2006 01:49:45 +0000 (18:49 -0700)
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>

No differences found