[Python-Dev] Tagged integers
jepler at unpythonic.net
Tue Jul 20 01:52:09 CEST 2004
One more random Tagged Types thought.
If we were introducing the test & branch for tagged types in incref/decref
anyway (unlikely, I know) wouldn't this let us add another oft-suggested
optimization at the same price: for certain immortal objects (None, (),
'', etc) there's no need to actually change the refcount. Make these
objects Tagged, and those memory accesses go away in favor of a single
register test that already exists to provide tagged integers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20040719/95012132/attachment.pgp
More information about the Python-Dev