[Python-Dev] Proposed PEP: Optimizing Global Variable and Attribute Access
Alex Martelli
aleax at aleax.it
Tue Aug 14 04:25:08 EDT 2001
"Roman Suzi" <rnd at onego.ru> wrote in message
news:mailman.997770921.12166.python-list at python.org...
> On Tue, 14 Aug 2001, Skip Montanaro wrote:
>
> > TRACK_OBJECT math.sin
> > ...
> > LOAD_FAST math.sin
> > ...
> > UNTRACK_OBJECT math.sin
>
> What about threads? What if math.sin changes while in cache?
Isn't that exactly what TRACK_OBJECT *means*?! If the
tracked object changes, whatever thread perpetrates the
change, the cache will be updated.
Alex
More information about the Python-list
mailing list