pygame-ce
pygame-ce copied to clipboard
Use PyObject_CallOneArg where applicable
trafficstars
A PR that follows what #3020 did
This was actually part of my commit for 3020 before I pushed it up to GitHub. The reason I didn’t want to use this is because it’s not in the limited API, and I would still like to move towards compiling with the limited API.
We could have a shim that converts this to the old thing in that theoretical case, but I just felt like this was a less clear win than NoArgs, also because NoArgs docs claim speed and OneArgs docs don’t mention it.
I think this probably has the same level of "minor performance gain" as the other PR, but I didn't notice the limited API detail while making the PR