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