Author ntoronto
Recipients arigo, bioinformed, nnorwitz, ntoronto, peaker, rhettinger
Date 2007-12-07.03:53:54
SpamBayes Score 0.331209
Marked as misclassified No
Message-id <1196999634.81.0.931303480727.issue1700288@psf.upfronthosting.co.za>
In-reply-to
Content
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.
Files
File name Uploaded
fastattr_test.py ntoronto, 2007-12-07.03:53:54
History
Date User Action Args
2007-12-07 03:53:55ntorontosetspambayes_score: 0.331209 -> 0.331209
recipients: + ntoronto, nnorwitz, arigo, rhettinger, peaker, bioinformed
2007-12-07 03:53:54ntorontosetspambayes_score: 0.331209 -> 0.331209
messageid: <1196999634.81.0.931303480727.issue1700288@psf.upfronthosting.co.za>
2007-12-07 03:53:54ntorontolinkissue1700288 messages
2007-12-07 03:53:54ntorontocreate