[Python-Dev] PyBench DictCreation (was Re: Performance compares)

Guido van Rossum guido@digicool.com
Fri, 18 May 2001 11:27:39 -0400


> > (I guess he means the buffer is alloc'ed contiguously with the dict
> > object head.  That's often a nice strategy.  Could do that for small
> > lists too maybe, except those haven't gotten anybody's attention just
> > yet.)
> 
> Sounds to me like it would benifit tuples even more than lists or dicts. At
> least in my code, I see more short tuples than short lists, and they are
> usually not altered after creation ;-)

Which is why tuples already have this feature.

Posted before your first cup of coffee? :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)