From: Nicolas Pitre Date: Mon, 26 Feb 2007 19:55:55 +0000 (-0500) Subject: sha1_file.c: cleanup hdr usage X-Git-Tag: v1.5.1-rc1~119^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d65a16f6c45c9b2a16f3abc45f727dc6507c853d?hp=d65a16f6c45c9b2a16f3abc45f727dc6507c853d sha1_file.c: cleanup hdr usage Let's have hdr be a simple char pointer/array when possible, and let's reduce its storage to 32 bytes. Especially for sha1_loose_object_info() where 128 bytes is way excessive and wastes extra CPU cycles inflating. The object type is already restricted to 10 bytes in parse_sha1_header() and the size, even if it is 64 bits, will fit in 20 decimal numbers. So 32 bytes is plenty. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano ---