author | Nicolas Pitre <nico@cam.org> | |
Tue, 18 Aug 2009 19:26:55 +0000 (15:26 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Aug 2009 21:16:37 +0000 (14:16 -0700) | ||
commit | 51ea55190b6e72c77c96754c1bf2f149a4714848 | |
tree | a8f4a6fa1f05c0080c926432905e6e66ccbfadeb | tree | snapshot |
parent | d5f6a96fa4792f6143d06d9c0b572a96d7235305 | commit | diff |
make sure byte swapping is optimal for git
We rely on ntohl() and htonl() to perform byte swapping in many places.
However, some platforms have libraries providing really poor
implementations of those which might cause significant performance
issues, especially with the block-sha1 code.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We rely on ntohl() and htonl() to perform byte swapping in many places.
However, some platforms have libraries providing really poor
implementations of those which might cause significant performance
issues, especially with the block-sha1 code.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.c | diff | blob | history | |
compat/bswap.h | [new file with mode: 0644] | blob |
git-compat-util.h | diff | blob | history |