Skip to content

Conversation

@stepancheg
Copy link

Summary

When requested amount is large but, but iterator is small, avoid allocating too large vec.

Motivation

If there's wrapper of such API (e.g. remote API), and it has parameter "sample size", because it is external API, user may pass very large value there, and if a user does that, it is better not to crash.

Details

This change is no-op where iterator lower bound is equal to iterator size.

  • Added a CHANGELOG.md entry

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