Accept StringPiece as inputs in net/base/escape.h |
||
Issue descriptionStringPiece is more permissive as an input parameter than std::string. However, a function accepting StringPiece can require an extra copy if it forwards a StringPiece to a function that requires a std::string. Therefore, accepting StringPiece at low levels in the stack enables higher levels to also accept StringPiece without losing efficiency. This tracks converting the functions provided by net/base/escape.h to accept string inputs as StringPiece or StringPiece16.
,
Jan 6 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jan 6 2017