OpenSearch/server/src
Armin Braun af2e2782eb
Stop Needlessly Copying Bytes in XContent Parsing (#61447) (#61469)
Wrapping a `BytesArray` in a `StreamInput` for deserialization is inefficient.
This forces Jackson to internally buffer (i.e. copy) all bytes from the `BytesArray`
before deserializing, adding overhead for copying the bytes and managing the buffers.

This commit fixes a number of spots where `BytesArray` is the most common type of
`BytesReference` to special case this type and parse it more efficiently.
Also improves parsing `String`s to use the more efficient direct `String` parsing APIs.
2020-08-24 15:49:15 +02:00
..
internalClusterTest/java/org/elasticsearch Enable cancellation for msearch requests (#61337) 2020-08-19 16:59:17 -04:00
main Stop Needlessly Copying Bytes in XContent Parsing (#61447) (#61469) 2020-08-24 15:49:15 +02:00
test Stop Needlessly Copying Bytes in XContent Parsing (#61447) (#61469) 2020-08-24 15:49:15 +02:00