Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Found this when benchmarking large cluster states. When serializing collections we'd mostly
not take any advantage of what we know about the collection contents (like we do in StreamOutput).
This PR adds a couple of helpers to the x-content-builder similar to what we have on StreamOutput
to allow for faster serializing by avoiding the writer lookup and some self-reference checks.

backport of #78742

…8742)

Found this when benchmarking large cluster states. When serializing collections we'd mostly
not take any advantage of what we know about the collection contents (like we do in `StreamOutput`).
This PR adds a couple of helpers to the x-content-builder similar to what we have on `StreamOutput`
to allow for faster serializing by avoiding the writer lookup and some self-reference checks.
@original-brownbear original-brownbear added >non-issue :Core/Infra/Core Core issues without another label backport labels Oct 6, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Oct 6, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@original-brownbear original-brownbear merged commit 0d23a0b into elastic:7.x Oct 6, 2021
@original-brownbear original-brownbear deleted the 78742-7.x branch October 6, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants