forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the overuse of StringView with std::string_view in Re2Function (
facebookincubator#8047) Summary: Currently there are some overuse of StringView in Re2Functions.h/cpp. It's not good because StringView is not a replacement of std::string_view, its copy is expensive than std::string_view, its data() is not safe to point to for copied short StringView. In this PR we replace StringView with std::string_view if it is a field of struct or a function param which is not feed by XxxVector directly. Pull Request resolved: facebookincubator#8047 Reviewed By: Yuhta Differential Revision: D52167089 Pulled By: mbasmanova fbshipit-source-id: 63e2fdf85291a7ab67c9cde39f0ae7c5445a2d10
- Loading branch information
1 parent
1b98f0a
commit 2106478
Showing
3 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters