[Pkg-javascript-commits] [node-leveldown] 435/492: use bloom filter

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit f5463ab793dbfe9803cb809e335381df0e1efe1e
Author: Rod Vagg <rod at vagg.org>
Date:   Wed Nov 13 19:28:31 2013 +1100

    use bloom filter
---
 src/database_async.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/database_async.cc b/src/database_async.cc
index 27aa982..3a06928 100644
--- a/src/database_async.cc
+++ b/src/database_async.cc
@@ -7,6 +7,7 @@
 #include <node_buffer.h>
 
 #include "leveldb/write_batch.h"
+#include "leveldb/filter_policy.h"
 
 #include "database.h"
 #include "leveldown.h"
@@ -41,6 +42,7 @@ OpenWorker::OpenWorker (
   options->block_size             = blockSize;
   options->max_open_files         = maxOpenFiles;
   options->block_restart_interval = blockRestartInterval;
+  options->filter_policy          = leveldb::NewBloomFilterPolicy(10);
 };
 
 OpenWorker::~OpenWorker () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list