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

add type BasicStringPiece::const_pointer, make it like string_view and more convenient #2141

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

lrita
Copy link
Contributor

@lrita lrita commented Mar 1, 2023

What problem does this PR solve?

add type BasicStringPiece::const_pointer, make it like string_view and more convenient.

e.g. we can using butil::StringPiece as a key to invoking folly::F14FastMap heterogeneous accessing method by this mr make butil::StringPiece like string_view which can implicitly convert to folly::StringPiece

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects(性能影响):
    none
  • Breaking backward compatibility(向后兼容性):
    none

@serverglen
Copy link
Contributor

LGTM

1 similar comment
@wwbmmm
Copy link
Contributor

wwbmmm commented Mar 2, 2023

LGTM

@serverglen serverglen merged commit 4bf452c into apache:master Mar 3, 2023
@lrita lrita deleted the optimize_stringpiece branch March 3, 2023 03:56
yanglimingcn pushed a commit to yanglimingcn/brpc that referenced this pull request Jun 25, 2023
yanglimingcn pushed a commit to yanglimingcn/brpc that referenced this pull request Oct 31, 2023
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