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

Refactor misc. "pure data structures" into their own crate #24209

Merged
merged 6 commits into from
Apr 18, 2015

Conversation

nikomatsakis
Copy link
Contributor

I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves snapshot_vec, graph, and unify into their own crate (librustc_data_structures). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc

@nrc
Copy link
Member

nrc commented Apr 8, 2015

r+ with the nits about comments fixed

@nikomatsakis
Copy link
Contributor Author

@bors r=nrc 48aed41

@nikomatsakis nikomatsakis force-pushed the refactor-unification branch 2 times, most recently from 1c4532f to ead4631 Compare April 9, 2015 18:51
@nikomatsakis
Copy link
Contributor Author

@bors r=nrc ead4631

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 10, 2015
…r=nrc

I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 10, 2015
…r=nrc

I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 10, 2015
…r=nrc

 I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the \"pure data structures\" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc
@bors
Copy link
Contributor

bors commented Apr 10, 2015

☔ The latest upstream changes (presumably #24177) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Apr 11, 2015

🔒 Merge conflict

@nikomatsakis
Copy link
Contributor Author

@bors r=nrc e47fb48

@Manishearth
Copy link
Member

Side discussion: Should librustc_* be moved to librustc/; having a crate hierarchy sort of thing? Keeps the tree organized, though it might be a pain for makefiles.

@bors
Copy link
Contributor

bors commented Apr 18, 2015

⌛ Testing commit e47fb48 with merge 77213d1...

bors added a commit that referenced this pull request Apr 18, 2015
I'm on a quest to slowly refactor a lot of the inference code. A first step for that is moving the "pure data structures" out so as to simplify what's left. This PR moves `snapshot_vec`, `graph`, and `unify` into their own crate (`librustc_data_structures`). They can then be unit-tested, benchmarked, etc more easily. As a benefit, I improved the performance of unification slightly on the benchmark I added vs the original code.

r? @nrc
@bors bors merged commit e47fb48 into rust-lang:master Apr 18, 2015
@nikomatsakis nikomatsakis deleted the refactor-unification branch March 30, 2016 16:16
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.

4 participants