Re: [PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp()

2014-06-25 Thread Junio C Hamano
Jeremiah Mahler jmmah...@gmail.com writes: When cache_name_compare() is used on counted strings of the same length, it is equivalent to a memcmp(). Since the one use of cache_name_compare() in name-hash.c requires that the lengths are equal, just replace it with memcmp(). I do not think it

[PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp()

2014-06-19 Thread Jeremiah Mahler
When cache_name_compare() is used on counted strings of the same length, it is equivalent to a memcmp(). Since the one use of cache_name_compare() in name-hash.c requires that the lengths are equal, just replace it with memcmp(). Signed-off-by: Jeremiah Mahler jmmah...@gmail.com --- name-hash.c