mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Optimize SHAMapItem construction
This commit is contained in:
committed by
Scott Schurr
parent
7ed2094a6a
commit
d8aab5a749
@@ -798,6 +798,13 @@ bool SHAMap::addItem (const SHAMapItem& i, bool isTransaction, bool hasMetaData)
|
||||
return addGiveItem(std::make_shared<SHAMapItem const>(i), isTransaction, hasMetaData);
|
||||
}
|
||||
|
||||
bool
|
||||
SHAMap::addItem(SHAMapItem&& i, bool isTransaction, bool hasMetaData)
|
||||
{
|
||||
return addGiveItem(std::make_shared<SHAMapItem const>(std::move(i)),
|
||||
isTransaction, hasMetaData);
|
||||
}
|
||||
|
||||
uint256
|
||||
SHAMap::getHash () const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user