elasticsearch/elasticsearch — pull request #5517 by jpountz (2014-03-24 15:08:44+00:00)
Title: BytesReference.Helper should never materialize a byte[] array.

The current implementations of BytesReference.Helper.bytesEquals and
bytesHashCode materialize a byte[] when passed an instance that returns `false`
in `hasArray()`. They should instead do a byte-by-byte comparison/hashcode
computation without materializing the array.