Skip to content

[C++] hide the m_codecStatePtr behind ifdefs to avoid overhead when p…#1036

Merged
vyazelenko merged 1 commit intoaeron-io:masterfrom
nbradac:hide-codecStatePtr-behind-ifdef
Dec 13, 2024
Merged

[C++] hide the m_codecStatePtr behind ifdefs to avoid overhead when p…#1036
vyazelenko merged 1 commit intoaeron-io:masterfrom
nbradac:hide-codecStatePtr-behind-ifdef

Conversation

@nbradac
Copy link
Contributor

@nbradac nbradac commented Dec 12, 2024

…recedence checking is disabled

The m_codecStatePtr is now only defined when SBE_ENABLE_PRECEDENCE_CHECKS is defined. The various setter/getter functions still exist when _CHECKS is not defined to keep the rest of the code simpler, but they do nothing and should be optimized away.

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