title: C# byte[] comparison without bound checks
body: <p>I am looking for performance efficient ways to compare two byte[] for equality. Sizes are above 1 MB, so the overhead for each array element should be minimized. </p>
  
  <p>I aim to beat the speeds of <a href="http://msdn.microsoft.com/en-us/library/bb348567.aspx" rel="nofollow noreferrer"><code>SequenceEqual</code></a> or a <a href="https://stackoverflow.com/questions/1389570/c-byte-array-comparison-issue">hand-coded for-loop over every item</a>, by <a href="http://blogs.msdn.com/clrcodegeneration/archive/2009/08/13/array-bounds-check-elimination-in-the-clr.aspx" rel="nofollow noreferrer">avoiding the repetitive bound checks</a> for both arrays. In the same way that <code>Array.Copy</code> could lead to fast <code>memcpy</code>, what will lead to a <code>memcmp</code>?</p>