[Python-3000] Set literal

John Barham jbarham at gmail.com
Fri Jan 25 07:55:05 CET 2008


Martin v. Löwis" wrote:

> Are you implying that the search is faster for a tuple if the set is
> small?

That was my intuition but the measurements say otherwise. ;)  Even for
sets as small as two or three elements, searches in frozensets are
faster than within tuples.  See my tuple vs. frozenset timeit results
and Guido's confirmation in a parallel thread.

  John


More information about the Python-3000 mailing list