Skip to content

[Backport 7.x] Avoid multiple enumeration of IEnumerable PostData #4432

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 1 commit into from
Feb 24, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Backport f3f8466 from #4428

This commit updates PostData to use the enumerator to
enumerate IEnumerable<string> or IEnumerable<object>,
avoiding enumerating twice, once when checking .Any() and again
when calling foreach.

Closes #4388
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@russcam russcam merged commit 9865861 into 7.x Feb 24, 2020
@russcam russcam deleted the backport-4428-to-7.x branch February 24, 2020 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants