News for hackers. Stuff that matters.
Re:Just how constexpr is C++20’s std:string? by vitus on Friday September 08, 2023 @05:44PM (#37439776)
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.

Re:Just how constexpr is C++20’s std:string? by hot_gril on Saturday September 09, 2023 @02:11AM (#37442724)
Whoops. As you can maybe tell, the stuff I use C++ for isn't so much about performance.