Skip to content

IntoIterator and IndexedParallelIterator for Zip? #1077

@adamreichold

Description

@adamreichold

I have a problem where I was unable to apply the methods provided by Zip and therefore decay that into a Parallellterator to be able to use arbitrary fold and reduce operations. Due to the large size of the temporary arrays, I would like to use Rayon's with_min_len to avoid the Zip being split too often (and thereby allocating too many temporary arrays). However, this method is only available on IndexedParallelIterator instances which Zip is not. This seems to be related to Zip also not implementing IntoIterator in contrast to over NdProducers.

Is there a fundamental issue which prevents providing those traits for Zip (After all, it does implement SplitAt and provides a size method.) or is this just not yet implemented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions