[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)
Larry Hastings
report at bugs.python.org
Tue Mar 17 14:17:23 EDT 2020
Larry Hastings <larry at hastings.org> added the comment:
> The problem with having a single immortal `None`, is that it will
> cause data cache thrashing as two different CPUs modify the
> refcount on the shared `None` object.
That's a very reasonable theory. Personally, I find modern CPU architecture bewildering and unpredictable. So I'd prefer it if somebody tests such performance claims, rather than simply asserting them and having that be the final design.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39511>
_______________________________________
More information about the Python-bugs-list
mailing list