[Python-Dev] Pie-thon benchmark code ready

Guido van Rossum guido at python.org
Thu Jan 1 11:49:20 EST 2004


> > The ordering is supposed to be an unimportant detail.  The external
> > program solution won't work due to the nature of the benchmark.  I'll
> > fix the benchmark some time next week.  The fix should be fairly
> > simple and localized.
> 
> It was easier than I thought, so it's in place.  Version 1.0.2 uses a
> subclass of dict whose __repr__ sorts the keys.  The running time
> doesn't seem to be substantially affected.
> 
> (Oh how I love subclassing builtin classes!)

Make that 1.0.3.  There were two relevant dict usages -- one for
globals and one for locals. :-)

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



More information about the Python-Dev mailing list