Skip to content

Data-sharing delivery is more efficient than Shared Memory Transport? #3654

Answered by JesusPoderoso
wjhtinger asked this question in Q&A
Discussion options

You must be logged in to vote

You are describing the something different from Shared Memory (SHM).
Here it is necessary to differentiate between the different copies that occur in the different communication layers involved.

On one side, the application data is serialized (and deserialized) to the DataWriter history (and from DataReader history, respectively). That serialization involves a copy (as well as deserialization involves another copy). It can be avoided using the loan mechanism (example described in Zero-Copy communication section).

Network based transports data copies

Then, if a network transport is involved (UDP or TCP), the serialized data requires an encapsulation, adding a header and other valuable info…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
10 replies
@wjhtinger
Comment options

@JesusPoderoso
Comment options

Answer selected by JesusPoderoso
@wjhtinger
Comment options

@andreclerigo
Comment options

@zoeeer
Comment options

@JesusPoderoso
Comment options

Comment options

You must be logged in to vote
5 replies
@JesusPoderoso
Comment options

@zoeeer
Comment options

@JesusPoderoso
Comment options

@zoeeer
Comment options

@JesusPoderoso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants