summaryrefslogtreecommitdiff
path: root/src/sha1_lookup.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-08-09 16:47:14 -0400
committerJeff King <peff@peff.net>2017-08-09 16:47:14 -0400
commit9842b3270446e806d86e5e21e97d73260ed0bb31 (patch)
tree6e933a99edab58e3c09fcfb712bd7063670818fc /src/sha1_lookup.h
parenta9d6b9d529daa920b558ee3f34151422d10bc95e (diff)
downloadlibgit2-9842b3270446e806d86e5e21e97d73260ed0bb31.tar.gz
sha1_lookup: drop sha1_entry_pos functionpeff/drop-sha1-entry-pos
This was pulled over from git.git, and is an experiment in making binary-searching lists of sha1s faster. It was never compiled by default (nor was it used upstream by default without a special environment variable). Unfortunately, it is actually slower in practice, and upstream is planning to drop it in git/git@f1068efefe6dd3beaa89484db5e2db730b094e0b (which has some timing results). It's worth doing the same here for simplicity.
Diffstat (limited to 'src/sha1_lookup.h')
-rw-r--r--src/sha1_lookup.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/sha1_lookup.h b/src/sha1_lookup.h
index 3799620c7..f65854f9d 100644
--- a/src/sha1_lookup.h
+++ b/src/sha1_lookup.h
@@ -9,12 +9,6 @@
#include <stdlib.h>
-int sha1_entry_pos(const void *table,
- size_t elem_size,
- size_t key_offset,
- unsigned lo, unsigned hi, unsigned nr,
- const unsigned char *key);
-
int sha1_position(const void *table,
size_t stride,
unsigned lo, unsigned hi,