Compare commits

...
Author SHA1 Message Date
CodemodService Bot 7354997040 Fix CQS signal performance-faster-string-find in xplat/js/react-native-github/packages/react-native/ReactCommon/jsiexecutor/jsireact
Reviewed By: dtolnay

Differential Revision: D77715183
2025-07-03 21:00:21 -07:00
@@ -58,7 +58,7 @@ namespace {
// basename_r isn't in all iOS SDKs, so use this simple version instead.
std::string simpleBasename(const std::string& path) {
size_t pos = path.rfind("/");
size_t pos = path.rfind('/');
return (pos != std::string::npos) ? path.substr(pos) : path;
}