Nathaniel Smith added the comment:

Sure, but whatever overhead it has, it has. Once we're paying for it, new keys 
are free (at yield/resume time).

Compared to a bare thread-local it probably has somewhat higher overhead when 
we have to check it, but (a) that's why PEP 550 has a clever caching mechanism, 
and (b) you don't have to check it until you have a pending signal, and you 
almost never have a pending signal.

Anyway, we can wait until PEP 550 settles down before making any commitment 
here...

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31388>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to