Skip to content

Replace usages of ..i + 1 ranges with ..=i.#56516

Merged
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-eq
Dec 7, 2018
Merged

Replace usages of ..i + 1 ranges with ..=i.#56516
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-eq

Conversation

@frewsxcv

@frewsxcv frewsxcv commented Dec 4, 2018

Copy link
Copy Markdown
Contributor

Before this change we were using old computer code techniques. After this change we use the new and improved computer code techniques.

@frewsxcv frewsxcv force-pushed the frewsxcv-eq branch 2 times, most recently from cfd8fdd to 33de72b Compare December 4, 2018 19:37
@rust-lang rust-lang deleted a comment from rust-highfive Dec 4, 2018
@rust-lang rust-lang deleted a comment from rust-highfive Dec 4, 2018
@rust-highfive

This comment has been minimized.

@leonardo-m

Copy link
Copy Markdown

Before merging this I suggest to take a look at the performance effects. Because closed intervals still are slower (but such lower performance is significant only in some situations).

@frewsxcv

frewsxcv commented Dec 5, 2018

Copy link
Copy Markdown
Contributor Author

@leonardo-m Is there an issue in this repo for tracking such performance issues?

@Dylan-DPC-zz Dylan-DPC-zz added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2018
@kennytm

kennytm commented Dec 5, 2018

Copy link
Copy Markdown
Member

@leonardo-m #45222 has been closed pretty long time ago.

@leonardo-m

Copy link
Copy Markdown

I know, and the problem isn't solved well yet. I'll have to reopen that issue or create a new one...

@leonardo-m

Copy link
Copy Markdown

I've added a little example in Issue #45222.

@kennytm

kennytm commented Dec 6, 2018

Copy link
Copy Markdown
Member

@bors try

@bors

bors commented Dec 6, 2018

Copy link
Copy Markdown
Collaborator

⌛ Trying commit c025d61 with merge 941e2d7...

bors added a commit that referenced this pull request Dec 6, 2018
Replace usages of `..i + 1` ranges with `..=i`.

Before this change we were using old computer code techniques. After this change we use the new and improved computer code techniques.
@bors

bors commented Dec 6, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-travis
State: approved= try=True

@kennytm

kennytm commented Dec 6, 2018

Copy link
Copy Markdown
Member

@rust-timer build 941e2d7

@rust-timer

Copy link
Copy Markdown
Collaborator

Success: Queued 941e2d7 with parent 77a6a61, comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit 941e2d7

@frewsxcv

frewsxcv commented Dec 6, 2018

Copy link
Copy Markdown
Contributor Author

Doesn't like like there's much of a difference in performance, right?

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Largely as expected -- ranges are almost definitively not where the compiler spends its time. I'm okay landing this from a performance perspective.

@Centril

Centril commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

r? @Mark-Simulacrum

@estebank

estebank commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

@bors r=Mark-Simulacrum (as there haven't been any updates to the PR since @Mark-Simulacrum last looked at it and it indeed looks fine to merge)

@bors

bors commented Dec 7, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit c025d61 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 7, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Dec 7, 2018
…crum

Replace usages of `..i + 1` ranges with `..=i`.

Before this change we were using old computer code techniques. After this change we use the new and improved computer code techniques.
bors added a commit that referenced this pull request Dec 7, 2018
Rollup of 7 pull requests

Successful merges:

 - #56000 (Add Armv8-M Mainline targets)
 - #56250 (Introduce ptr::hash for references)
 - #56434 (Improve query cycle errors for parallel queries)
 - #56516 (Replace usages of `..i + 1` ranges with `..=i`.)
 - #56555 (Send textual profile data to stderr, not stdout)
 - #56561 (Fix bug in from_key_hashed_nocheck)
 - #56574 (Fix a stutter in the docs for slice::exact_chunks)

Failed merges:

r? @ghost
@bors bors merged commit c025d61 into rust-lang:master Dec 7, 2018
@frewsxcv frewsxcv deleted the frewsxcv-eq branch December 10, 2018 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants