OpenSearch/plugins/transport-nio
Armin Braun 0a879b95d1
Save Bounds Checks in BytesReference (#56577) (#56621)
Two spots that allow for some optimization:

* We are often creating a composite reference of just a single item in
the transport layer => special cased via static constructor to make sure we never do that
   * Also removed the pointless case of an empty composite bytes ref
* `ByteBufferReference` is practically always created from a heap buffer these days so there
is no point of dealing with all the bounds checks and extra references to sliced buffers from that
and we can just use the underlying array directly
2020-05-12 20:33:45 +02:00
..
licenses Upgrade netty to 4.1.49.Final (#56059) 2020-05-05 10:40:23 -06:00
src Save Bounds Checks in BytesReference (#56577) (#56621) 2020-05-12 20:33:45 +02:00
build.gradle Upgrade netty to 4.1.49.Final (#56059) 2020-05-05 10:40:23 -06:00