[Python-Dev] Timeout for PEP 550 (original) (raw)
[Python-Dev] Timeout for PEP 550 / Execution Context discussion
Nathaniel Smith njs at pobox.com
Tue Oct 17 15:51:24 EDT 2017
- Previous message (by thread): [Python-Dev] Timeout for PEP 550 / Execution Context discussion
- Next message (by thread): [Python-Dev] Timeout for PEP 550 / Execution Context discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 :-).
-n -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171017/b8dcfc28/attachment.html>
- Previous message (by thread): [Python-Dev] Timeout for PEP 550 / Execution Context discussion
- Next message (by thread): [Python-Dev] Timeout for PEP 550 / Execution Context discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]