Skip to content

Add rayon feature flag and implement IntoParIterator#71

Open
crclark wants to merge 1 commit intoibraheemdev:masterfrom
crclark:crclark/rayon-intopariterator
Open

Add rayon feature flag and implement IntoParIterator#71
crclark wants to merge 1 commit intoibraheemdev:masterfrom
crclark:crclark/rayon-intopariterator

Conversation

@crclark
Copy link
Copy Markdown

@crclark crclark commented Jun 16, 2025

This seems to solve my issue #47 asking for a faster way to iterate. In my use case, I'm building up a large map (in parallel), then I need to write the entire thing to parquet files as fast as possible, so consuming the map across threads works great.

  • Add a rayon feature flag to Cargo.toml.
  • Add IntoParIterator and par_iter implementations for HashSet and HashMap.
  • Add tests to show that the implementations don't lose any entries.

@ibraheemdev
Copy link
Copy Markdown
Owner

Just a heads up that I'm quite busy at the moment so it might take me some time to get to this. FWIW you can do this today using par_bridge with an owned guard (see #2).

@ibraheemdev ibraheemdev added the feature New feature or request label Jul 3, 2025
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

Successfully merging this pull request may close these issues.

2 participants