http: minor perf fix, not copying strings#6861
http: minor perf fix, not copying strings#6861mattklein123 merged 2 commits intoenvoyproxy:masterfrom
Conversation
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
|
If you have this fixed internally (!!!), I think there are a lot more examples than these but I don't think we have been tracking them carefully. |
|
I also have this fixed differently in #6733 though I might not have pushed that change yet. Basically the strings in this need to become StatNames so they can be used to quickly joined into larger StatNames. Checking this in now is fine if urgent; I can deal with the merge conflict later. |
|
It's not urgent but yeah, in your current version I still see the std::strings and TODOs and I don't see the test change? |
|
Yeah, FWIW I did a quick grep for const std::string not in a function signature and it didn't help me find other things to clean up. I wonder if I can turn up more poking around our import logs and PR history for "string" |
If you can somehow search GH comments for me saying "sigh" you will probably fine some. :) |
|
Yeah it's not fully compiling yet but I pushed it anyway just now to make it visible. not ready for review obviously but early feedback on the approach would be great. |
htuch
left a comment
There was a problem hiding this comment.
Yes, please remove all of these Google string hacks. We might have a few around string_view, but I think these are not in the protobuf space.
We're good for this, right?
Risk Level: Low
Testing: existing tests pass
Docs Changes: n/a
Release Notes: n/a