]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
string_contains(): speed up by avoiding function calls where
authorGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:57:49 +0000 (06:57 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:57:49 +0000 (06:57 +0000)
commitbf935fde1550b768d9fb14cec230d1e79a5212c2
treefc0aaddf9e0c7edd26df5b6e52c9a6e13a6ba678
parent9d6897accc49f40414fbecafeb1c65562c6e4647
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.
Objects/stringobject.c