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

Avoid double checking the reservoir length #72

Merged
merged 1 commit into from
Aug 24, 2015

Conversation

shepmaster
Copy link
Contributor

This is probably a tiny efficiency gain, but is mostly nicer
semantics.

This is probably a tiny efficiency gain, but is mostly nicer
semantics.
@rust-highfive
Copy link

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Contributor

Thanks!

alexcrichton added a commit that referenced this pull request Aug 24, 2015
Avoid double checking the reservoir length
@alexcrichton alexcrichton merged commit a17dbb4 into rust-random:master Aug 24, 2015
@shepmaster shepmaster deleted the sample-if-let branch August 24, 2015 02:48
vks pushed a commit to vks/rand that referenced this pull request Apr 9, 2018
Avoid double checking the reservoir length
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.

4 participants