Looks like there are lot of redundant calls to std::basic_string<>::c_str() or base::StringPiece::c_str() when passing parameters to different functions.
That can lead to unwanted calls of strlen() or even worse, to making a copy of a string.
I will try to make a CL with a patch for this bug.
Comment 1 by ice...@yandex-team.ru
, Jan 9 2017