Update bloom filter size
This commit is contained in:
parent
9b6a78ba99
commit
f313746915
@ -164,7 +164,7 @@ function loadBloomFilter(name) {
|
||||
fetch(url).then(response => {
|
||||
response.arrayBuffer().then(arrayBuffer => {
|
||||
var array = new Uint32Array(arrayBuffer);
|
||||
var b = new BloomFilter(array, 10);
|
||||
var b = new BloomFilter(array, 20);
|
||||
b.name = name;
|
||||
bloomFilters.push(b);
|
||||
});
|
||||
|
@ -2,7 +2,7 @@ var bloomfilter = require("./extension/bloomfilter.js");
|
||||
var fs = require('fs');
|
||||
|
||||
function importFile(txt, name) {
|
||||
var b = new bloomfilter.BloomFilter(/*bits*/ 1037100, 10);
|
||||
var b = new bloomfilter.BloomFilter(/*bits*/ 1207718, 20);
|
||||
|
||||
for (var line of fs.readFileSync(txt).toString().split('\n')) {
|
||||
line = line.trim();
|
||||
|
Loading…
Reference in New Issue
Block a user