Use 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 Review-Url: https://codereview.chromium.org/2278723003 Cr-Commit-Position: refs/heads/master@{#414450}
Showing
This diff is collapsed.
Please register or sign in to comment