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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem where I was unable to apply the methods provided by
Zipand therefore decay that into aParallellteratorto be able to use arbitraryfoldandreduceoperations. Due to the large size of the temporary arrays, I would like to use Rayon'swith_min_lento avoid theZipbeing split too often (and thereby allocating too many temporary arrays). However, this method is only available onIndexedParallelIteratorinstances whichZipis not. This seems to be related toZipalso not implementingIntoIteratorin contrast to otherNdProducers.Is there a fundamental issue which prevents providing those traits for
Zip(After all, it does implementSplitAtand provides asizemethod.) or is this just not yet implemented?Beta Was this translation helpful? Give feedback.
All reactions