Skip to content

Commit

Permalink
Change hash table min size from 53 to 23
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdrake committed May 25, 2015
1 parent 42f714a commit caa3f1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions extension/boolexpr/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
** From: http://planetmath.org/goodhashtableprimes
*/

#define _MIN_IDX 5
#define _MIN_IDX 4
#define _MAX_IDX 30

static size_t _primes[] = {
0, 0, 0, 0, 0,
0, 0, 0, 0,

/* (2^4, 2^5) */ 23,
/* (2^5, 2^6) */ 53,
/* (2^6, 2^7) */ 97,
/* (2^7, 2^8) */ 193,
Expand Down
5 changes: 3 additions & 2 deletions extension/boolexpr/set.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
** From: http://planetmath.org/goodhashtableprimes
*/

#define _MIN_IDX 5
#define _MIN_IDX 4
#define _MAX_IDX 30

static size_t _primes[] = {
0, 0, 0, 0, 0,
0, 0, 0, 0,

/* (2^4, 2^5) */ 23,
/* (2^5, 2^6) */ 53,
/* (2^6, 2^7) */ 97,
/* (2^7, 2^8) */ 193,
Expand Down

0 comments on commit caa3f1e

Please sign in to comment.