These are all trivial micro-optimizations.
“If you want your code to run faster, you should probably just use PyPy.” — Guido van Rossum
“If you want your code to run faster, you should probably just use PyPy.” — Guido van Rossum
https://morepypy.blogspot.com/2019/12/hpy-kick-off-sprint-re...
Personally, I’ve tried pypy without issues, out of curiosity, but in about 15 years of using python never ran into python code as being the performance bottleneck. There are too highly performant modules for everything.
So basically anything where the hot path is in pure Python, rather than a standard library method.