Skip to content

perf: Reduce Vec allocations in normalization by passing &mut Vec #68857

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
Feb 9, 2020

Conversation

Marwes
Copy link
Contributor

@Marwes Marwes commented Feb 5, 2020

Complicates the code a bit but allocation/freeing were a few percent of the overall runtime in trait heavy code.

@rust-highfive
Copy link
Contributor

r? @matthewjasper

(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 Feb 5, 2020
@Centril
Copy link
Contributor

Centril commented Feb 5, 2020

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Collaborator

bors commented Feb 5, 2020

⌛ Trying commit 44373ae82d8f877bd2c6a1500c99cc4ba439fdab with merge 54fee46e0947e8c22e2f5e2eab39dab464588091...

@bors
Copy link
Collaborator

bors commented Feb 5, 2020

☀️ Try build successful - checks-azure
Build commit: 54fee46e0947e8c22e2f5e2eab39dab464588091 (54fee46e0947e8c22e2f5e2eab39dab464588091)

@rust-timer
Copy link
Collaborator

Queued 54fee46e0947e8c22e2f5e2eab39dab464588091 with parent 4ff8fb9, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 54fee46e0947e8c22e2f5e2eab39dab464588091, comparison URL.

@matthewjasper
Copy link
Contributor

r=me with conflicts resolved

@matthewjasper
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 8, 2020

📌 Commit 51b891a has been approved by matthewjasper

@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 Feb 8, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 8, 2020
perf: Reduce Vec allocations in normalization by passing &mut Vec

Complicates the code a bit but allocation/freeing were a few percent of the overall runtime in trait heavy code.
bors added a commit that referenced this pull request Feb 9, 2020
Rollup of 7 pull requests

Successful merges:

 - #68718 (Move `rustc_hir::def_id` to `rustc_span::def_id`)
 - #68834 (Fix and test implementation of BTreeMap's first/last_entry, pop_first/last)
 - #68857 (perf: Reduce Vec allocations in normalization by passing &mut Vec)
 - #68918 (Don't use the word "unwrap" to describe "unwrap" methods)
 - #68946 (Mark several functions and methods in core::cmp as #[must_use])
 - #68958 (Clean up E0277 and E0282 explanations)
 - #68960 (codegen: misc cleanups around debuginfo scopes and locations.)

Failed merges:

r? @ghost
bors added a commit that referenced this pull request Feb 9, 2020
Rollup of 7 pull requests

Successful merges:

 - #68718 (Move `rustc_hir::def_id` to `rustc_span::def_id`)
 - #68834 (Fix and test implementation of BTreeMap's first/last_entry, pop_first/last)
 - #68857 (perf: Reduce Vec allocations in normalization by passing &mut Vec)
 - #68918 (Don't use the word "unwrap" to describe "unwrap" methods)
 - #68946 (Mark several functions and methods in core::cmp as #[must_use])
 - #68958 (Clean up E0277 and E0282 explanations)
 - #68960 (codegen: misc cleanups around debuginfo scopes and locations.)

Failed merges:

r? @ghost
@bors bors merged commit 51b891a into rust-lang:master Feb 9, 2020
@Marwes Marwes deleted the allocations branch April 23, 2020 08:45
# 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