[Python-Dev] Speeding up instance attribute access

Martin v. Loewis martin@v.loewis.de
11 Feb 2002 13:15:59 +0100

Guido van Rossum <guido@python.org> writes:

> - We need fallbacks for various exceptional cases:

I think assignment to __class__ also needs to be
considered. Therefore, it may be best if the member array is a
separate block (not allocated with the instances).

It might also be worthwhile to incorporate __slots__ access into that
scheme, to avoid having to find the member descriptor in the class