diff options
Diffstat (limited to 'src/cells/hash_table.c')
| -rw-r--r-- | src/cells/hash_table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cells/hash_table.c b/src/cells/hash_table.c index 255a3ef..4a3668d 100644 --- a/src/cells/hash_table.c +++ b/src/cells/hash_table.c @@ -5,6 +5,12 @@ #include <stdlib.h> #include <string.h> +// uthash use faster murmurhash +#include "murmurhash/murmurhash.h" +#define HASH_FUNCTION(keyptr, keylen, hashv) \ + do { \ + hashv = murmurhash(keyptr, keylen, 0); \ + } while (0) #include "uthash.h" #include "fieldstat.h" |
