Message145516
This changes behavior so that hash() gets called twice for the key tuple, resulting in decreased performance.
In an earlier version of the lru_cache before the "with lock" was introduced, the try/except form was more atomic. It also worked well with dict subclasses that use __missing__ (which is bypassed with the LBYL style of lookup).
I'll look at this more shortly -- thanks for the links to the other tracker items. |
|
Date |
User |
Action |
Args |
2011-10-14 14:00:40 | rhettinger | set | recipients:
+ rhettinger, ezio.melotti |
2011-10-14 14:00:40 | rhettinger | set | messageid: <1318600840.5.0.71026498354.issue13177@psf.upfronthosting.co.za> |
2011-10-14 14:00:39 | rhettinger | link | issue13177 messages |
2011-10-14 14:00:39 | rhettinger | create | |
|