DescriptionAvoid some string copies in RAPPOR code.
I remembered some RAPPOR tasks being Janky and looked
at sampling profiler data for this code and noticed there
was a lot of string copies. This CL makes some intermediate
parts use StringPiece to avoid some copies. There's still
more copies to go, but this should reduce how many we need.
BUG=none
Committed: https://crrev.com/0037e42c128122bd4ebdf73a135439198f52cdcc
Cr-Commit-Position: refs/heads/master@{#406125}
Patch Set 1 #
Messages
Total messages: 9 (3 generated)
|