mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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.