[Checkins] SVN:
zope.interface/trunk/src/zope/interface/interface.py using
`__setattr__` instead of `property` speeds up zope start-up
time again, since getting the value for `__bases__` through
`__dict__` adds up with almost 200.000 calls;
of course, there's some overhead, since `__setattr__` gets called for
the other attributes as well, but overall start-up is still faster
Andreas Zeidler
az at zitc.de
Mon Jan 14 16:05:44 EST 2008
On Jan 14, 2008, at 4:16 PM, Stephan Richter wrote:
> On Sunday 06 January 2008, Jim Fulton wrote:
>> This change breaks assigning to __class__, which the twisted folks
>> depend on. In general, Im suspicious of using __setattr__. What
>> impact does this change have on startup time? How did you measure
>> it?
>
> I have not seen this checkin being reverted. Andreas, can you do this?
of course — i just did (in r82877). and btw, i hadn't reverted it
right away (but merely answered jim's questions), since it wasn't
really clear if i should...
regards,
andi
--
zeidler it consulting - http://zitc.de/ - info at zitc.de
friedelstraße 31 - 12047 berlin - telefon +49 30 25563779
pgp key at http://zitc.de/pgp - http://wwwkeys.de.pgp.net/
plone 3.0.4 released! -- http://plone.org/products/plone
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/checkins/attachments/20080114/fb4d66dd/PGP.bin
More information about the Checkins
mailing list