Message81292
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). |
|
Date |
User |
Action |
Args |
2009-02-06 19:21:08 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, jcea, chemacortes, pitrou |
2009-02-06 19:21:08 | mark.dickinson | set | messageid: <1233948068.25.0.749030423905.issue5169@psf.upfronthosting.co.za> |
2009-02-06 19:21:06 | mark.dickinson | link | issue5169 messages |
2009-02-06 19:21:06 | mark.dickinson | create | |
|