[issue10401] Globals / builtins cache

Antoine Pitrou report at bugs.python.org
Sat Nov 13 19:14:15 CET 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

There aren't many possible approaches. The more complex variants of globals caches try to also speedup writes, which is IMO a waste of time since rebinding globals is not a good coding practice, and especially not in the middle of time-critical loops.

(by the way, the patch only addresses normal functions, but generators would easily benefit from a similar treatment)

And Skip is right that this would be most useful when paired with a JIT (allowing for aggressive specialization, and possibly inlining).


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list