Improvements because items in SHAMaps are immutable:

* SHAMapItem::getData is not needed
* SHAMapTreeNode::getItem is not needed
* SHAMapTreeNode::getData is not needed
* No need to copy them when constructing transactions
* No need to copy them when computing map deltas
* No need to copy them in deepCompare
* No need to copy them in SHAMapTreeNode's copy constructor
This commit is contained in:
JoelKatz
2014-01-04 23:00:04 -08:00
committed by Vinnie Falco
parent 045beb5f36
commit 750cbb8399
8 changed files with 20 additions and 39 deletions

View File

@@ -439,7 +439,7 @@ bool SHAMap::deepCompare (SHAMap& other)
if (node->peekItem ()->getTag () != otherNode->peekItem ()->getTag ()) return false;
if (node->peekItem ()->getData () != otherNode->peekItem ()->getData ()) return false;
if (node->peekItem ()->peekData () != otherNode->peekItem ()->peekData ()) return false;
}
else if (node->isInner ())
{