Skip to content
Snippets Groups Projects
Commit 34d5367b authored by Gerhard Raven's avatar Gerhard Raven Committed by Sebastien Ponce
Browse files

small speedup of unpacking

parent 6d09a3ab
No related branches found
No related tags found
1 merge request!4340small speedup of unpacking
......@@ -96,7 +96,7 @@ bool StandardPacker::hintAndKey32( const int data, const DataObject* source, Dat
const auto* sourceLink = source->linkMgr()->link( indx );
if ( sourceLink ) {
// If link is valid, saved to target and get the hint
hint = target->linkMgr()->addLink( sourceLink->path(), 0 );
hint = target->linkMgr()->addLink( sourceLink->path(), sourceLink->object() );
// finally return status is OK
OK = true;
}
......@@ -124,7 +124,7 @@ bool StandardPacker::hintAndKey64( const std::int64_t data, const DataObject* so
const auto* sourceLink = source->linkMgr()->link( indx );
if ( sourceLink ) {
// If link is valid, saved to target and get the hint
hint = target->linkMgr()->addLink( sourceLink->path(), 0 );
hint = target->linkMgr()->addLink( sourceLink->path(), sourceLink->object() );
// finally return status is OK
OK = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment