I need to sort close to a 1,00,000 floating point entries in Delphi. I am new to Delphi and would like to know if there are any ready made solutions available. I tried a few language provided constructs and they take an inordinate amount of time to run to completion.(a 5-10 sec execution time is fine for the application)
Share
why not just implement a quick Sort algorithm?
see this simple code
in my machine, the execution time for sorting 1.000.000 float numbers is 0.167 seconds.
if you have delphi 7 or another older version (i don’t know if exist in the new versions) you can check the
path, for a cool demo app using differents sorting algorithms an threads.