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

Remove redundant hashmap #5619

Merged
merged 5 commits into from
Jun 27, 2018
Merged

Conversation

Eh2406
Copy link
Contributor

@Eh2406 Eh2406 commented Jun 8, 2018

We have two structures keeping track of parshall lists of conflicting_prev_active. I believe that they are always merged with each other before being used. (CI will tell me if I am wrong.) So in this PR we us pass a &mut so that it is merged as it gos. This saves us a clone/allocation of a hashmap for every tick, although most of the time one or both are empty so I doubt it will be a big performance change.

Keeping the comments clear in this code is very important. @alexcrichton, are there new comments that should go in with this change or more that should come out?

@rust-highfive
Copy link

r? @alexcrichton

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

@alexcrichton
Copy link
Member

@bors: r+

Looks great and sounds right to me, thanks @Eh2406!

@bors
Copy link
Contributor

bors commented Jun 27, 2018

📌 Commit d6d5758 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jun 27, 2018

⌛ Testing commit d6d5758 with merge e511e15...

bors added a commit that referenced this pull request Jun 27, 2018
Remove redundant hashmap

We have two structures keeping track of parshall lists of `conflicting_prev_active`. I believe that they are always merged with each other before being used. (CI will tell me if I am wrong.) So in this PR we us pass a `&mut` so that it is merged as it gos. This saves us a clone/allocation of a hashmap for every tick, although most of the time one or both are empty so I doubt it will be a big performance change.

Keeping the comments clear in this code is very important. @alexcrichton, are there new comments that should go in with this change or more that should come out?
@bors
Copy link
Contributor

bors commented Jun 27, 2018

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

@bors bors merged commit d6d5758 into rust-lang:master Jun 27, 2018
@Eh2406 Eh2406 deleted the remove_redundant_hashmap branch June 29, 2018 18:32
@ehuss ehuss added this to the 1.29.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants