
Nov. 13, 2019
4:39 p.m.
I wouldn't worry too much about the the Singletons in this issue; they could be solved in any of several ways, all of which would be improvements conceptually -- if performance and backwards compatibility were resolved. In theory, the incr/decr pair should be delegated to the memory store, with Petr's suggestion of immortal immutables being one example. The catch is that the current scheme is really fast in the normal case; even hardcoding just True/False/None to magic addresses might be slower. You don't have to solve that just to speed up access to state variables that are not exposed directly to python code.