[fpc-devel] CompareMem slower in FPC 2.4.4
José Mejuto
joshyfun at gmail.com
Thu Jun 2 20:46:32 CEST 2011
Hello FPC,
Thursday, June 2, 2011, 7:03:10 PM, you wrote:
>> 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.
After a brief test, the same happends with FillByte for blocks of 24
bytes or less, probably 32 when coded in ASM.
FillByte
--------
FillByte 4 : 371
XFillByte 4 : 68
FillByte 16 : 235
XFillByte 16 : 172
FillByte 24 : 235
XFillByte 24 : 228
FillByte 32 : 235
XFillByte 32 : 292
--
Best regards,
José
More information about the fpc-devel
mailing list