My stackoverflow question was closed so here's a blog post about CoreWCF

Span<T>.SequenceEquals is faster than memcmp