DescriptionUse StringPiece more in base::Value interfaces.
Many of these functions are called with string literals.
This leads to two problems:
- Implicit construction of std::string generates a
surprising amount of code, since STL code is often
inlined.
- We construct a temporary string, immediately copy it,
and then throw away the original temporary.
Effect of this CL on an official Linux binary:
before: 100.41 MiB
after: 99.56 MiB
BUG=none
Committed: https://crrev.com/16d6f53c350781fc725ea33d8e74c66a4b49c9bf
Cr-Commit-Position: refs/heads/master@{#414450}
Patch Set 1 #
Total comments: 2
Patch Set 2 : CrOS build fixes #
Messages
Total messages: 22 (14 generated)
|