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

Reduce overhead in SubsetSelectorImpl by fixing alignment #25644

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

DiazAlan
Copy link
Contributor

Commit Message: Reduce overhead in SubsetSelectorImpl by fixing alignment
Additional Description: Moves many of the smaller members of the class to the end to save small amounts of memory
Risk Level: Low

@phlax
Copy link
Member

phlax commented Feb 20, 2023

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #25644 (comment) was created by @phlax.

see: more, trace.

@adisuissa adisuissa self-assigned this Feb 21, 2023
Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

Thanks! Left a question.
/wait-any

@@ -757,10 +757,10 @@ class SubsetSelectorImpl : public SubsetSelector {

private:
const std::set<std::string> selector_keys_;
const std::set<std::string> fallback_keys_subset_;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this field moved to the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't moved down, it was moved up above an enum

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah... misread the change. That makes sense.
Can you please add a relevant comment (before the enum) similar to other PRs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@DiazAlan
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #25644 (comment) was created by @DiazAlan.

see: more, trace.

Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link

@envoyproxy/senior-maintainers assignee is @mattklein123

🐱

Caused by: a #25644 (review) was submitted by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Contributor

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Check envoy-presubmit didn't fail.

🐱

Caused by: a #25644 (comment) was created by @adisuissa.

see: more, trace.

@mattklein123 mattklein123 merged commit f3412fd into envoyproxy:main Feb 22, 2023
@DiazAlan DiazAlan deleted the SubsetSelectorImpl branch March 16, 2023 11:12
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.

4 participants