Some performance tweaks.

This commit is contained in:
JoelKatz
2012-10-28 21:05:07 -07:00
parent aa8211e60b
commit 0db9fc865c
3 changed files with 9 additions and 2 deletions

View File

@@ -1037,6 +1037,9 @@ int Ledger::getPendingSaves()
void Ledger::pendSave(bool fromConsensus)
{
if (!fromConsensus && !theApp->isNew(getHash()))
return;
boost::thread thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(), fromConsensus));
thread.detach();