[Python-Dev] tiny optimization in ceval mainloop

Michael Hudson mwh@python.net
30 Aug 2002 16:06:06 +0100


Jeremy Hylton <jeremy@alum.mit.edu> writes:

> The difference I saw with only the ticker check in ceval was only
> about 1% for pystone.  Python was always faster with the change, but
> never by much.

A bunch of 0.5% improvements add up.  If there's not much cost in
complexity, why not go for it?

Cheers,
M.

-- 
6. Symmetry is a complexity-reducing concept (co-routines include
   subroutines); seek it everywhere.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html