Github user mateiz commented on the pull request:

    https://github.com/apache/spark/pull/136#issuecomment-37888440
  
    Oh I see, I didn't realize that `partitions` only had only the tail of the 
partitions for each Partition object. Note that one problem with this is 
quadratic memory size -- if you call `sliding` on an RDD with 1000 partitions, 
you get O(1000^2) space used by the various arrays. It would be better to keep 
a reference to the same array and search through it starting at a new index.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to