Most efficient way to make sure that 2 byte[] are identical?

  • Thread starter Thread starter José Joye
  • Start date Start date
J

José Joye

I have to compare 2 byte[] and I must be sure that they are fully identic.
I have to perform this check about 1000 times per minute and on arrays that
are between 100-200K in size.
In that sense, what is the most efficient method?

Sincerely,
José
 
Hi Jose,

The only thing I can think of is first checking the length of the area and
if equal do an indexed for loop with as end one of the two arrays.

When there is something unequal direct leave the for loop.

I hope this helps?

Cor
 
Back
Top