Message157957
I changed the C version to cache the hash as well: For the submitted
test case the speedup is only 5x, but hashing times vary greatly
depending of the size of the coefficient and the exponent.
BTW, the tests already call both hash() and __hash__() on the same
number, so retrieving the cached value is actually tested. |
|
Date |
User |
Action |
Args |
2012-04-10 14:35:01 | skrah | set | recipients:
+ skrah, rhettinger, jcea, pitrou, Jimbofbx, python-dev, Ramchandra Apte, Jim.Jewett, serhiy.storchaka |
2012-04-10 14:35:01 | skrah | set | messageid: <1334068501.89.0.905956489314.issue14478@psf.upfronthosting.co.za> |
2012-04-10 14:35:01 | skrah | link | issue14478 messages |
2012-04-10 14:35:01 | skrah | create | |
|