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

Fix range performance regression #24120

Merged
merged 1 commit into from
Apr 8, 2015
Merged

Fix range performance regression #24120

merged 1 commit into from
Apr 8, 2015

Conversation

aturon
Copy link
Member

@aturon aturon commented Apr 6, 2015

A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators always involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes #24095
Closes #24119
cc #24014

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ b5301e6

@bors
Copy link
Contributor

bors commented Apr 7, 2015

⌛ Testing commit b5301e6 with merge 6f22c6a...

@bors
Copy link
Contributor

bors commented Apr 7, 2015

💔 Test failed - auto-mac-32-opt

A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators *always* involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes rust-lang#24095
cc rust-lang#24014
@aturon
Copy link
Member Author

aturon commented Apr 7, 2015

@bors: r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 7, 2015

📌 Commit dddcbcf has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Apr 8, 2015

⌛ Testing commit dddcbcf with merge 3a66c7f...

bors added a commit that referenced this pull request Apr 8, 2015
A recent change to the implementation of range iterators meant that,
even when stepping by 1, the iterators *always* involved checked
arithmetic.

This commit reverts to the earlier behavior (while retaining the
refactoring into traits).

Fixes #24095
Closes #24119
cc #24014 

r? @alexcrichton
@bors bors merged commit dddcbcf into rust-lang:master Apr 8, 2015
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.

RangeFrom<u8> stops at 254 Perf regression in Vec<u8> Write impl?
3 participants