string_contains(): speed up by avoiding function calls where
possible. This always called PyUnicode_Check() and PyString_Check(), at least one of which would call PyType_IsSubtype(). Also, this would call PyString_Size() on known string objects.
Showing
Please register or sign in to comment