Time taking in copying the data on loned pointer #1302
Unanswered
SomnathHolkar
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I think the slow operation is the copy assignment operator for the Best is to directly write your data into the memory chunk when creating it. If this is not possible you should at least go for a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are measuring the performnace for iceoryx. we observed that after taking the pointer of user paylod by calling loan api and writing 2048KB of data into its taking almost 25359 microseconds, but I checked normal copy operation with 2048KB its takin only 160 microseconds.
Please find the iceoryx example code snippet.
` std::unique_ptriox::popo::UntypedPublisher publisher_;
auto serviceString
= iox::cxx::string<20>(iox::cxx::TruncateToCapacity, iox::cxx::convert::toString(0x3));
auto instanceString
= iox::cxx::string<20>(iox::cxx::TruncateToCapacity, iox::cxx::convert::toString(3));
auto eventString
= iox::cxx::string<20>(iox::cxx::TruncateToCapacity, iox::cxx::convert::toString(0x8003));
`
Beta Was this translation helpful? Give feedback.
All reactions