• dcheng's avatar
    Use StringPiece more in base::Value interfaces. · 16d6f53c
    dcheng authored
    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}
    16d6f53c
arc_net_host_impl.cc 22.7 KB