Skip to content
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

do not recalculate global entity id as string on each call #29934

Conversation

adel121
Copy link
Contributor

@adel121 adel121 commented Oct 8, 2024

What does this PR do?

This PR performs an optimisation by avoiding calculating global tagger entity id as string on each call.
This change calculates the id as a string only once, and returns the string on each call.

Motivation

Optimise CPU usage and avoid regression.

CPU impact visible in APM Profiles:

image

Describe how to test/QA your changes

No need for QA, we already have E2E and unit tests.

Possible Drawbacks / Trade-offs

None

Additional Notes

@adel121 adel121 added kind/enhancement component/tagger changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team labels Oct 8, 2024
@adel121 adel121 added this to the 7.60.0 milestone Oct 8, 2024
@adel121 adel121 requested a review from a team as a code owner October 8, 2024 12:55
@adel121
Copy link
Contributor Author

adel121 commented Oct 8, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Oct 8, 2024

🚂 MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.

Use /merge -c to cancel this operation!

@pr-commenter
Copy link

pr-commenter bot commented Oct 8, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=46058509 --os-family=ubuntu

Note: This applies to commit 98d0eb6

@dd-devflow
Copy link

dd-devflow bot commented Oct 8, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 25m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 1761383 into main Oct 8, 2024
266 of 273 checks passed
@dd-mergequeue dd-mergequeue bot deleted the adelhajhassan/avoid_recalculating_global_entityid_as_string_each_time branch October 8, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/tagger kind/enhancement qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants