[Python-Dev] patch: speed up name access by up to 80% (original) (raw)

M.-A. Lemburg mal@lemburg.com
Tue, 12 Feb 2002 15:05:05 +0100


Guido van Rossum wrote:

> * Inline small dictionary tables in the PyObject struct and only > revert to external tables for larger ones. (I have an old patch > for this one which you might want to update) I may be missing some context, but AFAIK we already do this. See dictobject.h: the last item in struct dictobject is PyDictEntry masmalltable[PyDictMINSIZE];

Nice :-) I must have missed that addition (or simply forgotten about it).

-- Marc-Andre Lemburg CEO eGenix.com Software GmbH


Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/