Description
In SPARK-23961, data was no longer prefetched so that the local iterator could close cleanly in the case of not consuming all of the data. If the user intends to iterate over all elements, then prefetching data could bring back any lost performance. We would need to run some tests to see if the performance is worth it due to additional complexity and extra usage of memory. The option to prefetch could adding as a user conf, and it's possible this could improve the Scala toLocalIterator also.
Attachments
Issue Links
- is duplicated by
-
SPARK-27025 Speed up toLocalIterator
- Resolved
- is related to
-
SPARK-23961 pyspark toLocalIterator throws an exception
- Resolved
- links to