Best way to handle large lists?

GHUM haraldarminmassa at gmail.com
Wed Oct 4 10:49:14 CEST 2006


> > Maybe the application should use sets instead of lists for these
> > collections.
> What would sets do for me over lists?

searching for an element in a list is O(n)
searching for an element in a set is O(1)   (for reasonable distributed
elements)

Harald




More information about the Python-list mailing list