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

optimize redundant borrows and escaping paths in NLL #53177

Merged

Conversation

nikomatsakis
Copy link
Contributor

This builds on #53168 and adds a commit that addresses #53176 -- or at least I think it does. I marked this as WIP because I want to see the test results (and measure the performance). I also want to double check we're not adding in any unsoundness here.

@rust-highfive
Copy link
Collaborator

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 7, 2018
@nikomatsakis nikomatsakis force-pushed the nll-redundant-borrows-and-escaping-values branch from 7204297 to 31fe3df Compare August 7, 2018 22:04
@nikomatsakis
Copy link
Contributor Author

@bors try

@bors
Copy link
Contributor

bors commented Aug 7, 2018

⌛ Trying commit 31fe3df6543566f5671da4d78b381b9d59f2d096 with merge a7a1e7a9bda496d4f9f0fbd27d7cd126b18e8047...

@bors
Copy link
Contributor

bors commented Aug 7, 2018

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

@nikomatsakis
Copy link
Contributor Author

@rust-timer build a7a1e7a9bda496d4f9f0fbd27d7cd126b18e8047

@rust-timer
Copy link
Collaborator

Success: Queued a7a1e7a9bda496d4f9f0fbd27d7cd126b18e8047 with parent ccb550f, comparison URL.

@kennytm
Copy link
Member

kennytm commented Aug 8, 2018

Perf is ready.

@BurntPizza
Copy link
Contributor

*Clicks link*
*Falls out of chair*

@nikomatsakis
Copy link
Contributor Author

So yeah, seems like a win. =)

@nikomatsakis nikomatsakis changed the title [WIP] optimize redundant borrows and escaping paths in NLL optimize redundant borrows and escaping paths in NLL Aug 8, 2018
@nikomatsakis
Copy link
Contributor Author

So I pushed a comment that sort of convinces me that this logic is correct.

@nikomatsakis
Copy link
Contributor Author

Removing [WIP] and I've closed #53168 in favor of this PR, since it does more.

@nikomatsakis
Copy link
Contributor Author

r? @pnkfelix

@rust-highfive rust-highfive assigned pnkfelix and unassigned eddyb Aug 8, 2018
@kennytm
Copy link
Member

kennytm commented Aug 10, 2018

@bors retry #40474.

@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 Aug 10, 2018
@bors
Copy link
Contributor

bors commented Aug 10, 2018

⌛ Testing commit ff7f6d5 with merge 2c92308...

bors added a commit that referenced this pull request Aug 10, 2018
…g-values, r=pnkfelix

optimize redundant borrows and escaping paths in NLL

This builds on #53168 and adds a commit that addresses #53176 -- or at least I think it does. I marked this as WIP because I want to see the test results (and measure the performance). I also want to double check we're not adding in any unsoundness here.
@bors
Copy link
Contributor

bors commented Aug 10, 2018

💔 Test failed - status-travis

@rust-highfive
Copy link
Collaborator

The job dist-powerpc-linux of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
###################################################################       94.2%
######################################################################## 100.0%
[00:07:12] extracting /checkout/obj/build/cache/2018-08-01/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
[00:07:14]     Updating registry `https://github.com/rust-lang/crates.io-index`
No output has been received in the last 30m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 10, 2018
@kennytm
Copy link
Member

kennytm commented Aug 10, 2018

@bors retry #40474

@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 Aug 10, 2018
@bors
Copy link
Contributor

bors commented Aug 10, 2018

⌛ Testing commit ff7f6d5 with merge 19739a77689d041e02ef7b19be5730425676a165...

@bors
Copy link
Contributor

bors commented Aug 10, 2018

💔 Test failed - status-travis

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
  Downloading https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)
Collecting futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" (from s3transfer<0.2.0,>=0.1.12->awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/futures/
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.10.74->awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
---
########################                                                  34.0%
######################################################################## 100.0%
[00:06:44] extracting /checkout/obj/build/cache/2018-08-01/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
[00:06:44]     Updating registry `https://github.com/rust-lang/crates.io-index`
No output has been received in the last 30m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 10, 2018
@kennytm
Copy link
Member

kennytm commented Aug 10, 2018

@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 Aug 10, 2018
@bors
Copy link
Contributor

bors commented Aug 10, 2018

⌛ Testing commit ff7f6d5 with merge 0aa8d03...

bors added a commit that referenced this pull request Aug 10, 2018
…g-values, r=pnkfelix

optimize redundant borrows and escaping paths in NLL

This builds on #53168 and adds a commit that addresses #53176 -- or at least I think it does. I marked this as WIP because I want to see the test results (and measure the performance). I also want to double check we're not adding in any unsoundness here.
@bors
Copy link
Contributor

bors commented Aug 10, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: pnkfelix
Pushing 0aa8d03 to master...

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.

9 participants