Skip to content

Use foonathan memory manager for reducing allocations in SharedMemManager.hpp (backport #3833) #3889

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

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 28, 2023

This is an automatic backport of pull request #3833 done by Mergify.
Cherry-pick of df18056 has failed:

On branch mergify/bp/2.10.x/pr-3833
Your branch is up to date with 'origin/2.10.x'.

You are currently cherry-picking commit df180560d.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/cpp/rtps/transport/shared_mem/SharedMemManager.hpp
	new file:   src/cpp/utils/collections/impl/node-sizes/foonathan/list_node_size_impl.hpp
	new file:   src/cpp/utils/collections/impl/node-sizes/list_node_size_impl.hpp
	modified:   src/cpp/utils/collections/node_size_helpers.hpp

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   test/unittest/transport/CMakeLists.txt

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

@mergify mergify bot added the conflicts Backport PR wich git cherry pick failed label Sep 28, 2023
@JLBuenoLopez JLBuenoLopez added this to the v2.10.3 milestone Oct 3, 2023
@JesusPoderoso
Copy link
Contributor

@MiguelCompany could you please take a look at the conflicts of this PR, and fix them? Thanks!

@MiguelCompany MiguelCompany removed the conflicts Backport PR wich git cherry pick failed label Nov 13, 2023
@EduPonz EduPonz added the ci-pending PR which CI is running label Nov 28, 2023
ma30002000 and others added 2 commits December 1, 2023 09:10
…ager.hpp (#3833)

* Add helpers for std::list node sizes.

Signed-off-by: Matthias Schneider <[email protected]>

* Use foonathan memory pool for storing buffer nodes in shared mem manager in order to reduce dynamic heap allocations.

Signed-off-by: Matthias Schneider <[email protected]>

* Uncrustify.

Signed-off-by: Matthias Schneider <[email protected]>

* Add foonathan dependency to SharedMemTests.

Signed-off-by: Matthias Schneider <[email protected]>

* Initialize allocator with more realistic allocation assumption.

* Fix include order

Signed-off-by: Miguel Company <[email protected]>

* Removed unnecessary constexpr.

Signed-off-by: Miguel Company <[email protected]>

* Fix copyright year.

Signed-off-by: Miguel Company <[email protected]>

* Fix EOL.

Signed-off-by: Miguel Company <[email protected]>

* Fix windows build of unit test.

Signed-off-by: Miguel Company <[email protected]>

---------

Signed-off-by: Matthias Schneider <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Co-authored-by: Miguel Company <[email protected]>
(cherry picked from commit df18056)

# Conflicts:
#	test/unittest/transport/CMakeLists.txt
Signed-off-by: EduPonz <[email protected]>
Signed-off-by: Miguel Company <[email protected]>
Signed-off-by: EduPonz <[email protected]>
@EduPonz EduPonz force-pushed the mergify/bp/2.10.x/pr-3833 branch from 112003b to df530cf Compare December 1, 2023 08:10
@EduPonz
Copy link

EduPonz commented Dec 1, 2023

@richiprosima please test this

@EduPonz
Copy link

EduPonz commented Dec 1, 2023

@richiprosima please test mac

1 similar comment
@EduPonz
Copy link

EduPonz commented Dec 2, 2023

@richiprosima please test mac

@EduPonz EduPonz merged commit 0f46e43 into 2.10.x Dec 2, 2023
@EduPonz EduPonz deleted the mergify/bp/2.10.x/pr-3833 branch December 2, 2023 12:56
@EduPonz EduPonz removed the ci-pending PR which CI is running label Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants