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

proto util: change the input string ref to string view #36525

Merged

Conversation

wbpcode
Copy link
Member

@wbpcode wbpcode commented Oct 10, 2024

Commit Message: proto util: change the input string ref to string view
Additional Description:

absl::string_view is better thanconst string& in most cases to avoid unnecessary copy.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

Signed-off-by: wangbaiping <[email protected]>
@wbpcode
Copy link
Member Author

wbpcode commented Oct 10, 2024

/retest

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!

@alyssawilk alyssawilk merged commit 601292a into envoyproxy:main Oct 10, 2024
21 checks passed
@wbpcode wbpcode deleted the dev-use-string-view-rather-than-string-ref branch October 10, 2024 17:27
Stevenjin8 pushed a commit to Stevenjin8/envoy that referenced this pull request Oct 10, 2024
)

Commit Message: proto util: change the input string ref to string view
Additional Description:

`absl::string_view` is better than`const string&` in most cases to avoid
unnecessary copy.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

---------

Signed-off-by: wangbaiping <[email protected]>
Signed-off-by: Steven Jin Xuan <[email protected]>
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Oct 17, 2024
)

Commit Message: proto util: change the input string ref to string view
Additional Description:

`absl::string_view` is better than`const string&` in most cases to avoid
unnecessary copy.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

---------

Signed-off-by: wangbaiping <[email protected]>
Signed-off-by: Gustavo <[email protected]>
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.

3 participants