-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iox-#1693 support for iox::string in NamedPipe #2173
iox-#1693 support for iox::string in NamedPipe #2173
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2173 +/- ##
==========================================
- Coverage 80.12% 80.04% -0.09%
==========================================
Files 420 421 +1
Lines 16332 16361 +29
Branches 2267 2270 +3
==========================================
+ Hits 13086 13096 +10
- Misses 2411 2423 +12
- Partials 835 842 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@lucabart97 sorry for letting you wait so long. Not sure if I manage to do the review today but your PR is on the top of my todo list |
e92b3dc
to
6c017e9
Compare
6c017e9
to
bf251fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
The commit message is wrong. Please use only iox-#
and not iox-eclipse-iceoryx#
. The eclipse-iceoryx
is added only by the github web frontend. I would also encourage to use the git hooks since they take care of this automatically.
bf251fa
to
dbfa133
Compare
@elBoberido Done! |
By default, the NamedPipe class relies on std::string objects to send and receive data, as defined by its interface. However, this approach can potentially lead to dynamic memory allocation when handling larger data payloads that exceed the stack space optimization (SSO) limit. To address this issue, an alternative API has been introduced that enables data transmission and reception using iox::string. This approach allows for direct data manipulation within stack memory, effectively eliminating the need for dynamic memory allocation. Signed-off-by: Luca Bartoli <[email protected]>
dbfa133
to
da6cc54
Compare
@lucabart97 thanks. Next step would be using the new API |
@elBoberido |
@lucabart97 yes, the serialization would be the next step. There are essentially two options. One short term solution would be to make the current serialization work with |
@elBoberido |
@lucabart97 yes starting to support iox::string in the serialization functions. From my gut feelings I think the de-serialization part might be simpler but it's up to you to choose :) |
@elBoberido Ok, I start to understand the serialization part and try to support also |
By default, the NamedPipe class relies on std::string objects to send and receive data, as defined by its interface. However, this approach can potentially lead to dynamic memory allocation when handling larger data payloads that exceed the stack space optimization (SSO) limit.
To address this issue, an alternative API has been introduced that enables data transmission and reception using iox::string. This approach allows for direct data manipulation within stack memory, effectively eliminating the need for dynamic memory allocation.
Pre-Review Checklist for the PR Author
iox-123-this-is-a-branch
)iox-#123 commit text
)task-list-completed
)iceoryx_hoofs
are added to./clang-tidy-diff-scans.txt
Notes for Reviewer
Checklist for the PR Reviewer
iceoryx_hoofs
have been added to./clang-tidy-diff-scans.txt
Post-review Checklist for the PR Author
References