mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Avoid zero initialization of Blob:
This seemed to improve the performance of the copy, although there did seem to be some byte by byte copying still present. Further investigation recommended.
This commit is contained in:
committed by
Vinnie Falco
parent
e4c9822d78
commit
bffb5ef8b4
@@ -84,9 +84,7 @@ NodeObject::Ptr DecodedBlob::createObject ()
|
||||
|
||||
if (m_success)
|
||||
{
|
||||
Blob data (m_dataBytes);
|
||||
|
||||
memcpy (data.data (), m_objectData, m_dataBytes);
|
||||
Blob data(m_objectData, m_objectData + m_dataBytes);
|
||||
|
||||
object = NodeObject::createObject (
|
||||
m_objectType, m_ledgerIndex, std::move(data), uint256::fromVoid(m_key));
|
||||
|
||||
Reference in New Issue
Block a user