[Zope-dev] local namespace optimizations?
Andreas Jung
lists at zopyx.com
Wed Jul 5 14:09:30 EDT 2006
--On 5. Juli 2006 19:00:52 +0100 Tim Hicks <tim at sitefusion.co.uk> wrote:
> Florent Guillaume wrote:
>> Is anyone opposed to me removing the stupid:
>> _getattr = getattr
>> _none = None
>> marker = _marker
>> local namespace """optimizations""" that are found in
>> unrestrictedTraverse?
>
> I find these things rather confusing when looking at zope core code, and
> always wondered why they were there. In what sense are they
> optimisations?
Evil tricks from the ancient Zope world. Such lookups were faster because
the items were directly found in the local namespace so one saved time
looking them up in the global namespace.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060705/9c7776f1/attachment.bin
More information about the Zope-Dev
mailing list