]> granicus.if.org Git - python/commit
call_method(), call_maybe(): fix a performance bug: the argument
authorGuido van Rossum <guido@python.org>
Wed, 3 Oct 2001 00:50:18 +0000 (00:50 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Oct 2001 00:50:18 +0000 (00:50 +0000)
commitda21c0110b1948d4b3e0593e06436a2a5582f366
tree1a95b0f40e59db48b855d86443d18ca60244b9b0
parented554f6fc70416a726cd4abc44268dea4bf031e4
call_method(), call_maybe(): fix a performance bug: the argument
pointing to a static variable to hold the object form of the string
was never used, causing endless calls to PyString_InternFromString().
One particular test (with lots of __getitem__ calls) became a third
faster with this!
Objects/typeobject.c