Skip to content

Optimize XContentParserUtils.ensureExpectedToken (#62691) #63253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2020

Conversation

original-brownbear
Copy link
Contributor

We only ever use this with XContentParser no need to make it inline
worse by forcing the lambda and hence dynamic callsite here.
=> Extraced the exception formatting code path that is likely very cold
to a separate method and removed the lambda usage in hot loops by simplifying
the signature here.

backport of #62691

We only ever use this with `XContentParser` no need to make it inline
worse by forcing the lambda and hence dynamic callsite here.
=> Extraced the exception formatting code path that is likely very cold
to a separate method and removed the lambda usage in hot loops by simplifying
the signature here.
@original-brownbear original-brownbear added :Core/Infra/Core Core issues without another label backport labels Oct 5, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Oct 5, 2020
@original-brownbear
Copy link
Contributor Author

Jenkins run elasticsearch-ci/packaging-sample-windows

@original-brownbear original-brownbear merged commit cf75abb into elastic:7.x Oct 5, 2020
@original-brownbear original-brownbear deleted the 62691-7.x branch October 5, 2020 17:08
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 Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants