Chris Bracken 8d7d82192e Pass std::string_view by value not by ref (flutter/engine#33699)
String views are small, cheap objects that fit in a couple registers, so
passing by value avoids pointer indirection and thus a memory load.

Fun related reading for future archaeologists:
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/

And a Windows-specific footnote:
https://quuxplusone.github.io/blog/2021/11/19/string-view-by-value-ps/

No test change since there is no semantic change.
2022-05-31 11:13:29 -07:00
..