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 iterator use #2038

Merged
merged 5 commits into from Jul 29, 2020
Merged

Improve iterator use #2038

merged 5 commits into from Jul 29, 2020

Conversation

nnethercote
Copy link
Contributor

There are some sub-optimal uses of iterators. These commits make the code more concise and a tiny bit faster to compile.

@CreepySkeleton
Copy link
Contributor

a tiny bit faster to compile

Given that clap is huge and takes god damn lot of time to compile, I suspect the difference is within the rounding error. Do you have any specific numbers to back the statement?

Nevertheless, these changes do make the code clearer, so thank you very much.

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 29, 2020

Build succeeded:

@bors bors bot merged commit a4bc1f2 into clap-rs:master Jul 29, 2020
@nnethercote nnethercote deleted the improve-iterator-use branch January 11, 2022 00:45
@epage epage mentioned this pull request Apr 9, 2024
2 tasks
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.

None yet

2 participants