Re: I need the fastest routine



Q Correll wrote:
Clément,

Uhhh,... what's wrong with using the Min/Max value functions:

aMax := MaxIntValue(const Data: array of Integer): Integer;

aMin := MinIntValue(const Data: array of Integer): Integer;


Hi Q,

They are not fast enough :(
And I have to scan the same array twice one to get the max and another to get the min.

In fact, scanning the array and returning both value seemed always faster than dealing with each one separated. At least in my home made benchmark. :)



.