mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Allow tunable node sizes to adjust cache sizes, sweep timing, fetch
timing, and so on. Node size defaults to "tiny", which converves memory and bandwidth.
This commit is contained in:
@@ -20,6 +20,12 @@ HashedObjectStore::HashedObjectStore(int cacheSize, int cacheAge) :
|
||||
mWriteSet.reserve(128);
|
||||
}
|
||||
|
||||
void HashedObjectStore::tune(int size, int age)
|
||||
{
|
||||
mCache.setTargetSize(size);
|
||||
mCache.setTargetAge(age);
|
||||
}
|
||||
|
||||
|
||||
bool HashedObjectStore::store(HashedObjectType type, uint32 index,
|
||||
const std::vector<unsigned char>& data, const uint256& hash)
|
||||
|
||||
Reference in New Issue
Block a user