4 ms·
For both const std::string& and std::string_view, you're (potentially) incurring a runtime invocation of strlen. For const std::string&, you're further incurri
by vitus 3y ago
For both const std::string& and std::string_view, you're (potentially) incurring a runtime invocation of strlen.
For const std::string&, you're further incurring a copy in order to create a temporary std::string.
- hot_gril 3y agoWhoops. As you can maybe tell, the stuff I use C++ for isn't so much about performance.