Skip to content

Support dynamically allocated signaling payload #2140

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

vikramdattu
Copy link
Contributor

Issue #, if available:

  • We end up allocating MAX_SIGNALING_MESSAGE_LEN per signaling message received.

What was changed?

  • Configuration to choose to do this allocation dynamically.

Why was it changed?

  • For memory constrained devices, this is a huge deal. and would reduce(~couple of 100KBs of) peak memory usage.

How was it changed?

What testing was done for the changes?

 - We end up allocating `MAX_SIGNALING_MESSAGE_LEN` per signaling message received.
 - Not needed, and we can chose to do this allocation dynamically.
 - For memory constrained devices, this is a huge deal. and would reduce(~couple of 100KBs of) peak memory usage.
* MAX_SIGNALING_MESSAGE_LEN for each message when only a small payload is needed
*/
#ifndef DYNAMIC_SIGNALING_PAYLOAD
#define DYNAMIC_SIGNALING_PAYLOAD 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this a CMake option? (for out of the box builds)

For backwards compatibility, we should have 0/OFF as the default since it requires an application change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example:

option(ENABLE_STATS_CALCULATION_CONTROL "Enable support for runtime control of ice agent stat calculations." OFF)

if (ENABLE_STATS_CALCULATION_CONTROL)
add_definitions(-DENABLE_STATS_CALCULATION_CONTROL)
endif()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL: #2146

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.

2 participants