[Python-Dev] PEP 509: Add a private version to dict (original) (raw)
Maciej Fijalkowski fijall at gmail.com
Wed Jan 20 14:31:42 EST 2016
- Previous message (by thread): [Python-Dev] PEP 509: Add a private version to dict
- Next message (by thread): [Python-Dev] PEP 509: Add a private version to dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
there is also the problem that you don't want it on all dicts. So having two extra words is more to pay than having extra objects (also, comparison is cheaper for guards)
On Wed, Jan 20, 2016 at 8:23 PM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:
On 2016-01-20 2:09 PM, Maciej Fijalkowski wrote:
> You don't free a version tag that's stored in the guard. You store the object and not id Ah, got it. Although for my current cache design it would be more memory efficient to use the dict itself to store its own unique id and tag, hence my "maextra" proposal. In any case, the current "maversion" proposal is flawed :( Yury
- Previous message (by thread): [Python-Dev] PEP 509: Add a private version to dict
- Next message (by thread): [Python-Dev] PEP 509: Add a private version to dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]