Hello, > I tested that function, and strangely it takes 2640ms.
Delphi does a great optimization. Be sure to have debug information all of, and optimization on, rebuild and run outside the IDE. Don't use other funtions that can take a lot of time like Random. If a CPU has to compare it take no more or less time if it is large or small numbers or any number at all. so you only have to have all combinations in your test function. 1, 2, 3 2, 3, 1 3, 1, 2 2, 1, 3 1, 3, 2 3, 2, 1 Are there more ? --- Rgds, Wilfried http://www.mestdagh.biz _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

