IntoIterator and IndexedParallelIterator for Zip? #1080
Unanswered
adamreichold
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I think it's a fundamental issue. The NdProducers that are more than one-dimensional don't implement IntoIterator or indexing, since they don't have an efficient correspondance with a one dimensional sequence. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a problem where I was unable to apply the methods provided by
Zip
and therefore decay that into aParallellterator
to be able to use arbitraryfold
andreduce
operations. Due to the large size of the temporary arrays, I would like to use Rayon'swith_min_len
to avoid theZip
being split too often (and thereby allocating too many temporary arrays). However, this method is only available onIndexedParallelIterator
instances whichZip
is not. This seems to be related toZip
also not implementingIntoIterator
in contrast to otherNdProducer
s.Is there a fundamental issue which prevents providing those traits for
Zip
(After all, it does implementSplitAt
and provides asize
method.) or is this just not yet implemented?Beta Was this translation helpful? Give feedback.
All reactions