[fpc-devel] CompareMem slower in FPC 2.4.4

José Mejuto joshyfun at gmail.com
Thu Jun 2 20:29:18 CEST 2011


Hello FPC,

Thursday, June 2, 2011, 7:03:10 PM, you wrote:

FK> Am 02.06.2011 18:45, schrieb José Mejuto:
>> Hello FPC,
>> 
>>                              PlainCompare  CompareByte    XCompareByte
>>                              ------------  -----------    ------------
>> Equal arrays 1000 elements   16250 ms      625 ms         656 ms
>> Diff. arrays 1000 elements      62 ms      640 ms         656 ms
>> 
>> Equal arrays 32 elements       547 ms      625 ms         547 ms
>> Diff. arrays 32 elements        62 ms      640 ms          62 ms
>> 
FK> I improved the original CompareByte, please tell me how it works for you.

Much better now when arrays are identical it scales well...

Identical arrays
----------------
Comparemem 4     : 203
XCompareMem 4    : 109
CompareMemNew 4  : 94

Comparemem 32    : 453
XCompareMem 32   : 547
CompareMemNew 32 : 438

Comparemem 200   : 1125
XCompareMem 200  : 1156
CompareMemNew 200: 1125

Different arrays at first position
----------------------------------
Comparemem 4     : 293
XCompareMem 4    : 51
CompareMemNew 4  : 59

Comparemem 32    : 596
XCompareMem 32   : 51
CompareMemNew 32 : 59

Comparemem 200   : 593
XCompareMem 200  : 625
CompareMemNew 200: 609

-- 
Best regards,
 José




More information about the fpc-devel mailing list