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

Improve .step() slightly and add itertools::free::cloned #146

Merged
merged 5 commits into from
Sep 13, 2016
Merged

Conversation

bluss
Copy link
Member

@bluss bluss commented Sep 13, 2016

  • cloned is an intoiterator version of .cloned()
  • step is improved slightly for specialized fuse (takes advantage of .nth())

Related to #133, but only minor changes, no revolution, according to the bench.

IntoIterator enabled version of .cloned()
Don't use .sum() -- use a summation without any overflow checks.
The .nth() method on fuse is specialized when applicable, for less
overhead.
@bluss bluss merged commit cc8ac27 into master Sep 13, 2016
@bluss bluss deleted the step branch September 13, 2016 18:55
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