Re: metaclasses and performance

2007-06-21 Thread Mirko Dziadzka
Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > I don't know if C asserts are active in release Python, but for > new-style classes one thing that happens during attribute lookup is that > an object's class is asserted to be an instance of type. Thank's for the explanation. My Linux distribution

Re: metaclasses and performance

2007-06-19 Thread Lenard Lindstrom
Mirko Dziadzka wrote: > Hi all > > I'm playing around with metaclasses and noticed, that there is small > but mesurable a performance difference in the code shown below. With a > more complex example I get a 5 percent performance penalty for using a > metaclass. Until today I assumed, that a meta

metaclasses and performance

2007-06-19 Thread Mirko Dziadzka
Hi all I'm playing around with metaclasses and noticed, that there is small but mesurable a performance difference in the code shown below. With a more complex example I get a 5 percent performance penalty for using a metaclass. Until today I assumed, that a metaclass has no performance impact at