sorting 1172026 entries

Devin Jeanpierre jeanpierreda at gmail.com
Sun May 6 12:09:22 EDT 2012


On Sun, May 6, 2012 at 11:57 AM, J. Mwebaze <jmwebaze at gmail.com> wrote:
> I have several lists with approx 1172026 entries. I have been trying to sort
> the records, but have failed.. I tried lists.sort() i also trired sorted
> python's inbuilt method. This has been running for weeks.

Sorting 1172026 random floats takes about 1.5 seconds to do on my
machine. More complicated objects take more time, but usually not that
much more time. What exactly are you sorting?

-- Devin



More information about the Python-list mailing list