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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top