[Python-Dev] Tagged integers (original) (raw)
Jeff Epler jepler at unpythonic.net
Tue Jul 20 01:52:09 CEST 2004
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Include objimpl.h, 2.58, 2.59
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20040719/95012132/attachment.pgp
- Previous message: [Python-Dev] Tagged integers
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Include objimpl.h, 2.58, 2.59
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]