[PATCH 0/3] Using a bit more decoration
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 8, 2013, 23:01 UTC
- Message-ID
- <1365462114-8630-1-git-send-email-gitster@pobox.com>
- In-Reply-To
- <20130408210903.GC9649@sigill.intra.peff.net>
This comes on top of the two "decorate" patches that introduced the clear_decoration() function.
I am not sure if pre-parsing and sharing the encoding values in-core would affect performance very much, but now we have 2 bytes (or 6 bytes, if you are on 64-bit archs) free to use in "struct commit" for later use (e.g. extra object flags that are relevant only for commit objects, without having to widen "struct object").
Junio C Hamano (3): commit: shrink "indegree" field commit: rename parse_commit_date() commit: add get_commit_encoding()
commit.c | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++---------- commit.h | 5 ++- pretty.c | 33 +-------------- sequencer.c | 23 +--------- 4 files changed, 122 insertions(+), 77 deletions(-)
-- 1.8.2.1-450-gd047976