Skip to content
Discussion options

You must be logged in to vote

@AmazingPP

it's easy to encounter memory fragmentation or inefficient allocation

iceoryx2 pre-allocates memory, even in the fully dynamic case. In this case, it starts with the hinted size and if this does not suffice it pre-allocates a larger segment. Every segment is handled by a pool allocator with the same bucket size, so memory fragmentation and inefficient allocation (performance-wise) should never be a problem.

Are there any parameters or strategies that can efficiently handle large payload size variations?

What do you mean here? That you send a sample that has a size of 1GB and then a sample of 1 Byte, so you have huge size differences? If so I would recommend to split it up i…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AmazingPP
Comment options

@elfenpiff
Comment options

@AmazingPP
Comment options

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