[Python-Dev] Instance variable access and descriptors (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jun 12 10:10:26 CEST 2007
- Previous message: [Python-Dev] Instance variable access and descriptors
- Next message: [Python-Dev] Instance variable access and descriptors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
...at the cost of slowing down access to properties and slots, by adding an extra dictionary lookup there.
Rather than spend time tinkering with the lookup order, it might be more productive to look into implementing a cache for attribute lookups. That would help with method lookups as well, which are probably more frequent than instance var accesses.
-- Greg
- Previous message: [Python-Dev] Instance variable access and descriptors
- Next message: [Python-Dev] Instance variable access and descriptors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]