tim.one
(Tim Peters)
22
Don’t do it
. It’s extreme micro-optimization (yes, to change global lookups to local), and doesn’t help at all under the PyPy implementation.
For “normal code”, I never do this anymore. In context, I wanted to do everything possible to put CPython and PyPy on a level playing field.
1 Like
cfbolz
(CF Bolz-Tereick)
23
the ‘builtins as locals’ micro-optimization actually makes things slightly slower on pypy.
3 Likes