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 mark.dickinson
Recipients chemacortes, jcea, mark.dickinson, pitrou, rhettinger
Date 2009-02-06.19:21:05
SpamBayes Score 4.2438155e-06
Marked as misclassified No
Message-id <1233948068.25.0.749030423905.issue5169@psf.upfronthosting.co.za>
In-reply-to
Content
Some preliminary timings indicate that it may well be worth replacing 'return (long)p' with 
'return (long)p >> 3' in _Py_HashPointer (in Objects/object.c): I'm getting a 10% speedup in 
dict-building and dict-lookup for dicts of plain objects.  I'll open a separate issue for this 
and post details of the timings.

In the meantime, I think this issue can be closed as invalid: there's no reason that id(a) and 
hash(a) have to be equal.  (chemacortes, if you disagree then please do comment; we'll still 
see the comments even though the issue is closed).
History
Date User Action Args
2009-02-06 19:21:08mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, jcea, chemacortes, pitrou
2009-02-06 19:21:08mark.dickinsonsetmessageid: <1233948068.25.0.749030423905.issue5169@psf.upfronthosting.co.za>
2009-02-06 19:21:06mark.dickinsonlinkissue5169 messages
2009-02-06 19:21:06mark.dickinsoncreate