Message58262
I've attached the microbenchmarks I was using for my own version of
attribute caching. For list, tuple, dict, and a deep hierarchy, it tests
accessing type attributes (cls.__class__), class attributes
(cls.__init__), class attributes via instance (inst.__class__), and
instance attributes (inst.__init__), using LOAD_ATTR and hasattr. It
also tests hasattr with missing attributes. |
|
Date |
User |
Action |
Args |
2007-12-07 03:53:55 | ntoronto | set | spambayes_score: 0.331209 -> 0.331209 recipients:
+ ntoronto, nnorwitz, arigo, rhettinger, peaker, bioinformed |
2007-12-07 03:53:54 | ntoronto | set | spambayes_score: 0.331209 -> 0.331209 messageid: <1196999634.81.0.931303480727.issue1700288@psf.upfronthosting.co.za> |
2007-12-07 03:53:54 | ntoronto | link | issue1700288 messages |
2007-12-07 03:53:54 | ntoronto | create | |
|