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 ncoghlan
Recipients asvetlov, barry, bdkearns, brett.cannon, ezio.melotti, jcea, ncoghlan, pitrou, pjenvey, rhettinger, sbt, serhiy.storchaka, terry.reedy, zzzeek
Date 2013-03-11.02:21:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362968498.55.0.2707895034.issue16389@psf.upfronthosting.co.za>
In-reply-to
Content
Raymond's plan sounds good to me.

We may also want to tweak the 3.3 lru_cache docs to note the trade-offs involved in using it. Perhaps something like:

"As a general purpose cache, lru_cache needs to be quite pessimistic in deriving non-conflicting keys from the supplied arguments. When caching the results of CPU-bound calculations, the cost of deriving non-conflicting keys may need be assessed against the typical cost of the underlying calculation."

Which does give me a thought - perhaps lru_cache in 3.4 could accept a "key" argument that is called as "key(*args, **kwds)" to derive the cache key? (that would be a separate issue, of course)
History
Date User Action Args
2013-03-11 02:21:38ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, rhettinger, terry.reedy, jcea, pitrou, pjenvey, ezio.melotti, zzzeek, asvetlov, sbt, serhiy.storchaka, bdkearns
2013-03-11 02:21:38ncoghlansetmessageid: <1362968498.55.0.2707895034.issue16389@psf.upfronthosting.co.za>
2013-03-11 02:21:38ncoghlanlinkissue16389 messages
2013-03-11 02:21:37ncoghlancreate