[Python-Dev] Rethinking intern() and its data structure (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 10 03:22:10 CEST 2009
- Previous message: [Python-Dev] Rethinking intern() and its data structure
- Next message: [Python-Dev] Rethinking intern() and its data structure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John Arbash Meinel wrote:
And the way intern is currently written, there is a third cost when the item doesn't exist yet, which is another lookup to insert the object.
That's even rarer still, since it only happens the first time you load a piece of code that uses a given variable name anywhere in any module.
-- Greg
- Previous message: [Python-Dev] Rethinking intern() and its data structure
- Next message: [Python-Dev] Rethinking intern() and its data structure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]