oid.c
8.02 KB
-
git_oid_cmp: inline memcmp by hand to optimize · f6b26e77
git.git uses an inlined hashcmp function instead of memcmp, since it performes much better when comparing hashes (most hashes compared diverge within the first byte). Measurements and rationale for the curious reader: http://thread.gmane.org/gmane.comp.version-control.git/172286
Michael Schubert committed