Author pje
Recipients daniel.urban, lukasz.langa, ncoghlan, pitrou, pje, python-dev
Date 2013-05-25.16:54:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369500868.65.0.599552839538.issue16832@psf.upfronthosting.co.za>
In-reply-to
Content
Please expose this as an attribute of the class or module, not as a function.  A function is orders of magnitude slower than attribute access, and the entire point of exposing this is to allow caches to be invalidated.

In order to be useful for cache invalidation, the token has to be read on *every* access to a cache, thus adding unnecessary overhead to every cache access.
History
Date User Action Args
2013-05-25 16:54:28pjesetrecipients: + pje, ncoghlan, pitrou, daniel.urban, lukasz.langa, python-dev
2013-05-25 16:54:28pjesetmessageid: <1369500868.65.0.599552839538.issue16832@psf.upfronthosting.co.za>
2013-05-25 16:54:28pjelinkissue16832 messages
2013-05-25 16:54:28pjecreate