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

rayon and itertools #993

Open
bobi6666 opened this issue Nov 21, 2022 · 3 comments
Open

rayon and itertools #993

bobi6666 opened this issue Nov 21, 2022 · 3 comments

Comments

@bobi6666
Copy link

hello on this link which will be at the end of this post i have some methods that i would like to speedup with itertools and rayon and i would like to ask if there is something i can do?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6ddc6873616f259bc999fae1ed1aaba2

@wagnerf42
Copy link
Contributor

hi, not sure exactly what you are looking for but if it's a 'tuple' adaptor I have one here : https://github.com/wagnerf42/diam
if your question is something else, you should maybe be more explicit.

@bobi6666
Copy link
Author

bobi6666 commented Nov 21, 2022 via email

@cuviper
Copy link
Member

cuviper commented Jan 1, 2023

I think arrays are going to be a better way to handle this, like #974, since we can make that truly generic in length, vs. needing variadic types for tuples even though the elements are all the same type. (Or lacking variadics, then having manual implementations for different lengths.)

wagnerf42's crate looks fine to give you .into_par_iter().tuples() though, at least for 2 or 3 item tuples.

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

No branches or pull requests

3 participants