By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.