Re: efficient intersection of lists with rounding

2004-12-06 Thread Gordon Williams
on W2K, python 2.3.2, 1GHz Athlon. 1K, 10K and 30K long (seconds per call) t1= 0.009, 0.148, 0.563 t2= 0.015, 0.217, 0.777 t3= 0.008, 0.108, 0.487 t4= 0.016, 0.190, 0.749 t5= 0.015, 0.224, 0.773 The non-set algorithims (t1,t3) came out the winners (maybe due to the conversion of the set to a so

efficient intersection of lists with rounding

2004-12-02 Thread Gordon Williams
l want to round the second number of closest 0.25 rather than whole number. Would the sets module be more efficient? I'm using python 2.3. Thanks for any ideas. Regards, Gordon Williams -- http://mail.python.org/mailman/listinfo/python-list