2 ms·
I'm not clear on the status of PEP 509, but it could/should make LOAD_NAME and LOAD_GLOBAL approach the speed of LOAD_FAST. It'll set a flag on the globals dict
by xapata 10y ago
I'm not clear on the status of PEP 509, but it could/should make LOAD_NAME and LOAD_GLOBAL approach the speed of LOAD_FAST. It'll set a flag on the globals dict (or any dict?) that trips when the dict is mutated. Non-mutated dicts can have fast repeated lookups.
https://www.python.org/dev/peps/pep-0509/ https://www.python.org/dev/peps/pep-0509/
Dictionaries got some sweet upgrades for v3.6.