Cache size optimizations

This commit is contained in:
Pieter Wuille
2012-11-04 17:11:48 +01:00
parent a56d3f8a10
commit 1c83b0a377
7 changed files with 27 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ private:
leveldb::DB *pdb;
public:
CLevelDB(const boost::filesystem::path &path, bool fMemory = false);
CLevelDB(const boost::filesystem::path &path, size_t nCacheSize, bool fMemory = false);
~CLevelDB();
template<typename K, typename V> bool Read(const K& key, V& value) {