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

Include only needed crossbeam dependencies #53

Merged
merged 1 commit into from
Dec 16, 2019

Conversation

repi
Copy link
Contributor

@repi repi commented Dec 14, 2019

When building without par-schedule feature one only needs the crossbeam-channel crate, not all the other parts of crossbeam.

This reduces compile times when building with few features. We ran into this because we are building with default-features = false and wanted to reduce amount of dependencies and improve build times.

And when building with that feature, we only additionally need crossbeam-queue. Although in practice in that case one gets rest of crossbeam due to rayon.

When building without `par-schedule` feature one only needs the crossbeam-channel crate, not all the other parts of crossbeam. This reduces compile times when building with few features.

And when building with that feature, we only additionally need crossbeam-queue. Although in practice in that case one gets rest of crossbeam due to rayon.
@jaynus
Copy link
Contributor

jaynus commented Dec 14, 2019

I have a change removing crossbeam from non-par-schedule entirely, so it may supercede this PR. SeqQueue usage causes ordering issues for CommandBuffer, so it's being removed

@TomGillen TomGillen merged commit 5e36801 into amethyst:master Dec 16, 2019
@repi repi deleted the reduce-crossbeam branch December 16, 2019 08:49
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.

3 participants