Settle on hash approach
This commit is contained in:
parent
6b222ea8f9
commit
467ad50cd1
1 changed files with 4 additions and 3 deletions
|
@ -39,12 +39,12 @@ create_bloom(HashList) ->
|
||||||
0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0);
|
0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
L when L > 8192 ->
|
L when L > 4096 ->
|
||||||
add_hashlist(HashList,
|
add_hashlist(HashList,
|
||||||
16,
|
16,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0);
|
0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
L when L > 4084 ->
|
L when L > 2048 ->
|
||||||
add_hashlist(HashList, 4, 0, 0, 0, 0);
|
add_hashlist(HashList, 4, 0, 0, 0, 0);
|
||||||
_ ->
|
_ ->
|
||||||
add_hashlist(HashList, 2, 0, 0)
|
add_hashlist(HashList, 2, 0, 0)
|
||||||
|
@ -550,7 +550,8 @@ bloom_test_ranges() ->
|
||||||
test_bloom(128 * 256, 10),
|
test_bloom(128 * 256, 10),
|
||||||
test_bloom(20000, 2),
|
test_bloom(20000, 2),
|
||||||
test_bloom(10000, 2),
|
test_bloom(10000, 2),
|
||||||
test_bloom(5000, 2).
|
test_bloom(5000, 2),
|
||||||
|
test_bloom(2000, 2).
|
||||||
|
|
||||||
test_bloom(N, Runs) ->
|
test_bloom(N, Runs) ->
|
||||||
ListOfHashLists =
|
ListOfHashLists =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue