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

Extend the ParallelExtend implementations #1129

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Feb 9, 2024

  • All ParallelExtend impls now try to use the Vec pseudo-specialization.
  • Add ParallelExtend and FromParallelIterator for OsString to match std (since 1.52).

`Vec` originated this "specialization" based on `opt_len`, and the
recent `collect_vec_list` used the same technique. Now that is pushed
down a layer so that every `impl ParallelExtend` that uses a
`LinkedList<Vec<_>>` intermediate can also optimize the indexed case to
a single collected `Vec`, before extending the final collection.
@cuviper cuviper added this pull request to the merge queue Feb 9, 2024
Merged via the queue into rayon-rs:master with commit d530ebb Feb 9, 2024
4 checks passed
@cuviper cuviper deleted the extend branch February 11, 2024 23:19
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.

1 participant