This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients dtorp, rhettinger, tim.peters
Date 2010-08-25.20:00:01
SpamBayes Score 4.041622e-05
Marked as misclassified No
Message-id <1282766404.56.0.748802871225.issue9685@psf.upfronthosting.co.za>
In-reply-to
Content
- Tuple objects don't currently reserve space to store their hash code, so it's likely this would increase the size of every tuple.

- It's unclear to me which natural use patterns would actually enjoy a major speed boost.  Note that dicts remember the hash codes of keys already, regardless of whether the key type remembers them too.  A tuple is typically constructed right before being used in a dict lookup, so for a one-shot use no time would be saved.  If the new tuple is used in multiple dict lookups, sure - but is that common?
History
Date User Action Args
2010-08-25 20:00:04tim.peterssetrecipients: + tim.peters, rhettinger, dtorp
2010-08-25 20:00:04tim.peterssetmessageid: <1282766404.56.0.748802871225.issue9685@psf.upfronthosting.co.za>
2010-08-25 20:00:02tim.peterslinkissue9685 messages
2010-08-25 20:00:01tim.peterscreate