Skip to content

Fix Once perf regression #54662

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 1, 2018
Merged

Fix Once perf regression #54662

merged 1 commit into from
Oct 1, 2018

Conversation

matklad
Copy link
Member

@matklad matklad commented Sep 29, 2018

Because call_once is generic, but is_completed is not, we need
#[inline] annotation to allow LLVM to inline is_completed into
call_once in downstream crates.

cc https://github.com/rust-lang/rust/pull/53027/files#r221418859

Because `call_once` is generic, but `is_completed` is not, we need
`#[inline]` annotation to allow LLVM to inline `is_completed` into
`call_once` in downstream crates.
@rust-highfive
Copy link
Contributor

r? @withoutboats

(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 Sep 29, 2018
@eddyb
Copy link
Member

eddyb commented Sep 29, 2018

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Collaborator

bors commented Sep 29, 2018

📌 Commit f8e9d2f has been approved by alexcrichton

@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 Sep 29, 2018
@bors
Copy link
Collaborator

bors commented Oct 1, 2018

⌛ Testing commit f8e9d2f with merge 0337964...

bors added a commit that referenced this pull request Oct 1, 2018
Fix Once perf regression

Because `call_once` is generic, but `is_completed` is not, we need
`#[inline]` annotation to allow LLVM to inline `is_completed` into
`call_once` in downstream crates.

cc https://github.com/rust-lang/rust/pull/53027/files#r221418859
@bors
Copy link
Collaborator

bors commented Oct 1, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 0337964 to master...

@bors bors merged commit f8e9d2f into rust-lang:master Oct 1, 2018
@matklad matklad deleted the once-perf branch July 9, 2019 12:33
# for free to join this conversation on GitHub. Already have an account? # 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.

6 participants