Skip to content

Fix range performance regression - #24120

Merged
bors merged 1 commit into
rust-lang:masterfrom
aturon:range-perf
Apr 8, 2015
Merged

Fix range performance regression#24120
bors merged 1 commit into
rust-lang:masterfrom
aturon:range-perf

Conversation

@aturon

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

@bors: r+ b5301e6

@aturonaturon mentioned this pull request Apr 6, 2015
@bors

bors commented Apr 7, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b5301e6 with merge 6f22c6a...

@bors

bors commented Apr 7, 2015

Copy link
Copy Markdown
Collaborator

💔 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).
Fixesrust-lang#24095
cc rust-lang#24014
@aturon

Copy link
Copy Markdown
ContributorAuthor

@bors: r=alexcrichton

@bors

bors commented Apr 7, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit dddcbcf has been approved by alexcrichton

@bors

bors commented Apr 8, 2015

Copy link
Copy Markdown
Collaborator

⌛ 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#24095Closes#24119
cc #24014 r? @alexcrichton
@bors

bors commented Apr 8, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit dddcbcf into rust-lang:masterApr 8, 2015
Sign up for freeto 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

@aturon@alexcrichton@bors