Improve I/O when fetching ledgers

* negative cache for node store
* async fetch, thread pool for node store
* read barrier logic for node store
* SHAMap getMissingNodesNB (non-blocking)
* non-blocking getMissingNodes traverse
* tune caches
This commit is contained in:
David Schwartz
2014-02-20 09:30:21 -08:00
committed by Vinnie Falco
parent 37b39ed1a1
commit 2f7ac98e34
13 changed files with 370 additions and 136 deletions

View File

@@ -157,6 +157,18 @@ public:
m_map.clear ();
}
void setTargetSize (size_type s)
{
lock_guard lock (m_mutex);
m_target_size = s;
}
void setTargetAge (size_type s)
{
lock_guard lock (m_mutex);
m_target_age = std::chrono::seconds (s);
}
/** Returns `true` if the key was found.
Does not update the last access time.
*/