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

multi threading with rayon #8

Open
Luro02 opened this issue Jan 15, 2020 · 1 comment
Open

multi threading with rayon #8

Luro02 opened this issue Jan 15, 2020 · 1 comment
Labels

Comments

@Luro02
Copy link
Owner

Luro02 commented Jan 15, 2020

It might be worth to take advantage of multiple cores, when this macro generates code.

One easy way would be to use rayon as a drop in replacement. For for-loops one could use the synchronization primitives from the standard library.

This should definitely be an optional feature.

@Luro02
Copy link
Owner Author

Luro02 commented Jan 16, 2020

This is not possible right now, because TokenStream does not implement Send. Internally TokenStream uses an Rc instead of an Arc, but this should change once the compiler supports parallel compilation.
rust-lang/rust#59667

@Luro02 Luro02 added the blocked label Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant