Uh oh!
There was an error while loading. Please reload this page.
Replace usages of ..i + 1 ranges with ..=i. - #56516
Conversation
cfd8fdd to
33de72bCompare
This comment has been minimized.
This comment has been minimized.
leonardo-m
commented
Dec 5, 2018
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
commented
Dec 5, 2018
@leonardo-m Is there an issue in this repo for tracking such performance issues? |
kennytm
commented
Dec 5, 2018
@leonardo-m#45222 has been closed pretty long time ago. |
leonardo-m
commented
Dec 5, 2018
I know, and the problem isn't solved well yet. I'll have to reopen that issue or create a new one... |
leonardo-m
commented
Dec 6, 2018
I've added a little example in Issue #45222. |
kennytm
commented
Dec 6, 2018
@bors try |
bors
commented
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
commented
Dec 6, 2018
☀️ Test successful - status-travis |
kennytm
commented
Dec 6, 2018
@rust-timer build 941e2d7 |
rust-timer
commented
Dec 6, 2018
Success: Queued 941e2d7 with parent 77a6a61, comparison URL. |
rust-timer
commented
Dec 6, 2018
Finished benchmarking try commit 941e2d7 |
frewsxcv
commented
Dec 6, 2018
Doesn't like like there's much of a difference in performance, right? |
Mark-Simulacrum
commented
Dec 6, 2018
Largely as expected -- ranges are almost definitively not where the compiler spends its time. I'm okay landing this from a performance perspective. |
Centril
commented
Dec 7, 2018
estebank
commented
Dec 7, 2018
@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
commented
Dec 7, 2018
📌 Commit c025d61 has been approved by |
…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.
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
Before this change we were using old computer code techniques. After this change we use the new and improved computer code techniques.