Skip to content

lbmap: skip expensive debug log operations when disabled #35999

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 1 commit into from
Nov 18, 2024

Conversation

giorio94
Copy link
Member

Modify the updateServiceEndpoint function to avoid attempting to log debug messages when debug logs are disabled, given that this is potentially an hot-path in case of high service/endpoint churn, and that causes unnecessary allocations.

Modify the `updateServiceEndpoint` function to avoid attempting to
log debug messages when debug logs are disabled, given that this is
potentially an hot-path in case of high service/endpoint churn, and
that causes unnecessary allocations.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. kind/performance There is a performance impact of this. release-note/misc This PR makes changes that have no direct user impact. labels Nov 15, 2024
@giorio94 giorio94 requested a review from a team as a code owner November 15, 2024 16:23
@giorio94 giorio94 requested a review from gentoo-root November 15, 2024 16:23
@giorio94
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 15, 2024
@aanm aanm added this pull request to the merge queue Nov 18, 2024
Merged via the queue into cilium:main with commit 9810e99 Nov 18, 2024
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. kind/performance There is a performance impact of this. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants