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

remove io.ReadAll from bulker and API endpoints #3241

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

michel-laterman
Copy link
Contributor

Use io.Copy or a json decoder instead of io.ReadAll on bulker/API.
Copying to a bytes.Buffer results in fewer allocations then ReadAll.

Copying to a bytes.Buffer results in fewer allocations then ReadAll.
@michel-laterman michel-laterman added Team:Fleet Label for the Fleet team tech debt labels Jan 29, 2024
@michel-laterman michel-laterman requested a review from a team as a code owner January 29, 2024 22:13
Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@michel-laterman michel-laterman enabled auto-merge (squash) January 30, 2024 14:59
Copy link

@michel-laterman michel-laterman merged commit 502af76 into elastic:main Jan 31, 2024
8 checks passed
@michel-laterman michel-laterman deleted the remove-readall branch March 13, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Label for the Fleet team tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants