469,898 Members | 1,538 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

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

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é
Nov 22 '05 #1
1 1227
Cor
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
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?

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Programmer | last post: by
15 posts views Thread by Tor Erik Sřnvisen | last post: by
3 posts views Thread by Ted Miller | last post: by
1 post views Thread by James Dean | last post: by
8 posts views Thread by Jami Bradley | last post: by
2 posts views Thread by chris | last post: by
3 posts views Thread by Madhur | last post: by
reply views Thread by Hendrik van Rooyen | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.