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 Support #2

Open
ibraheemdev opened this issue Jul 7, 2024 · 3 comments
Open

Rayon Support #2

ibraheemdev opened this issue Jul 7, 2024 · 3 comments
Labels
feature New feature or request

Comments

@ibraheemdev
Copy link
Owner

Implement ParallelIterator for HashMap under a rayon feature flag.

@ibraheemdev ibraheemdev added the feature New feature or request label Jul 7, 2024
@arendjr
Copy link
Contributor

arendjr commented Dec 19, 2024

It appears as though even Rayon's .par_bridge() doesn't work on Papaya's iterators. I'm not sure if I'm doing something wrong, but it looks like having explicit support might be especially useful.

@ibraheemdev
Copy link
Owner Author

Hmm par_bridge should work. You may need to use an owned guard because Rayon doesn't know to create guards per thread.

@arendjr
Copy link
Contributor

arendjr commented Dec 19, 2024

Yes, you're right, with pin_owned() it works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants