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

Optimize Batch for collection fitting a single bucket #623

Merged
merged 5 commits into from
Oct 29, 2019

Conversation

atifaziz
Copy link
Member

@atifaziz atifaziz commented Oct 26, 2019

This PR came out of the discussion in #619 but does not address #619. It adds optimisations to Batch for collections (and lists) and specifically when a collection can entirely fit in a single bucket. It avoids eagerly allocating to the size argument only to trim down later.

This is an optimisation of Batch and not a defined behaviour.

/cc @kcragin

@atifaziz atifaziz merged commit 418806b into morelinq:master Oct 29, 2019
@atifaziz atifaziz deleted the batch-oversize branch October 29, 2019 09:33
@atifaziz atifaziz added this to the 3.3.0 milestone Oct 29, 2019
@atifaziz atifaziz mentioned this pull request Oct 31, 2019
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.

1 participant