get_sha1_hex() micro-optimization
authorJunio C Hamano <junkio@cox.net>
Sun, 10 Sep 2006 05:21:27 +0000 (22:21 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 10 Sep 2006 05:21:27 +0000 (22:21 -0700)
commita41fae9c46a4cb5e59cc1a17d19f6a3a6cbfbb2f
tree40ce41c0822095c933b462f05a990485c5eb7135
parent2878836c5074be92b913c95446b94bbf1c9a9e1d
get_sha1_hex() micro-optimization

The function appeared high on a gprof output for a rev-list run of
a non-trivial size, and it was an obvious low-hanging fruit.

The code is from Linus.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c