[Python-Dev] Timeout for PEP 550 / Execution Context discussion
njs at pobox.com
Tue Oct 17 15:51:24 EDT 2017
On Oct 17, 2017 11:25 AM, "Guido van Rossum" <guido at python.org> wrote:
In short, I really don't think there's a need for context variables to be
faster than instance variables.
There really is: currently the cost of looking up a thread local through
the C API is a dict lookup, which is faster than instance variable lookup,
and decimal and numpy have both found that that's already too expensive.
Or maybe you're just talking about the speed when the cache misses, in
which case never mind :-).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev