std::string is replaced with absl::string_view in test for performance reasons.#11568
std::string is replaced with absl::string_view in test for performance reasons.#11568yashwant121 wants to merge 0 commit into
Conversation
There was a problem hiding this comment.
This is undefined behavior. with_comma will be referencing dangling pointer on the line below. The ASAN run will likely fail after you fix format problem. Also there is no performance gain in doing this.
There was a problem hiding this comment.
Same thing here, undefined behavior.
|
Quick look through the PR show a few instances of undefined behavior. Please run ASAN build on your change and address the problems it reports. A few of these changes need to reverted. |
jmarantz
left a comment
There was a problem hiding this comment.
In general it should be safe to change formal-params to a function from string to string_view. However I think some of the other changes you've made look troublesome, per @yanavlasov's comments.
|
/wait |
|
Nice!! |
a338c21 to
b612236
Compare
A lot of the overhead std::string calls are replaced with absl::string_view
See #11287 for more details.