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 rhettinger
Recipients ezio.melotti, rhettinger
Date 2011-10-14.14:00:39
SpamBayes Score 2.9496021e-09
Marked as misclassified No
Message-id <1318600840.5.0.71026498354.issue13177@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-10-14 14:00:40rhettingersetrecipients: + rhettinger, ezio.melotti
2011-10-14 14:00:40rhettingersetmessageid: <1318600840.5.0.71026498354.issue13177@psf.upfronthosting.co.za>
2011-10-14 14:00:39rhettingerlinkissue13177 messages
2011-10-14 14:00:39rhettingercreate