[Python-Dev] Possible low-hanging optimization

David Abrahams dave@boost-consulting.com
Thu, 12 Dec 2002 16:09:09 -0500


Skip Montanaro <skip@pobox.com> writes:

>     Guido> For classic classes, it would be too much of a break with
>     Guido> history.
>
> In addition, since most classes exist to associate state with methods that
> operate on it you'd probably only be delaying the creation of self.__dict__
> by a few milliseconds in the common case.

That's why I mentioned that it might help for new-style classes with
__slots__.

-- 
                       David Abrahams
   dave@boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution