From: Nicolas Pitre Date: Mon, 15 May 2006 17:47:16 +0000 (-0400) Subject: pack-object: slightly more efficient X-Git-Tag: v1.4.1-rc1~105^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ff45715ce50b80ab16ee0d0dc7fff0c47a51959a?hp=ff45715ce50b80ab16ee0d0dc7fff0c47a51959a pack-object: slightly more efficient Avoid creating a delta index for objects with maximum depth since they are not going to be used as delta base anyway. This also reduce peak memory usage slightly as the current object's delta index is not useful until the next object in the loop is considered for deltification. This saves a bit more than 1% on CPU usage. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano ---