Skip to content
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

Stop Passing Around REST Request in Multiple Spots (#44949) #45109

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

original-brownbear
Copy link
Member

  • Stop Passing Around REST Request in Multiple Spots

  • Motivated by Stop Copying Every Http Request in Message Handler #44564

    • We are currently passing the REST request object around to a large number of places. This works fine since we simply copy the full request content before we handle the rest itself which is needlessly hard on GC and heap.
    • This PR removes a number of spots where the request is passed around needlessly. There are many more spots to optimize in follow-ups to this, but this one would already enable bypassing the request copying for some error paths in a follow up.

back port of #44949

* Stop Passing Around REST Request in Multiple Spots

* Motivated by elastic#44564
  * We are currently passing the REST request object around to a large number of places. This works fine since we simply copy the full request content before we handle the rest itself which is needlessly hard on GC and heap.
  * This PR removes a number of spots where the request is passed around needlessly. There are many more spots to optimize in follow-ups to this, but this one would already enable bypassing the request copying for some error paths in a follow up.
@original-brownbear original-brownbear merged commit 9450505 into elastic:7.x Aug 2, 2019
@original-brownbear original-brownbear deleted the 44949-7.x branch August 2, 2019 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant