mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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 ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user