Github user vrilleup commented on the pull request:
https://github.com/apache/spark/pull/964#issuecomment-47964502
@yangliuyu did you persist the underlying RDD[Vector] behind RowMatrix?
This RDD is used in every iteration, caching will improve run time a lot. From
my tests, if the RDD is persist(), the first call to aggregate takes 10s to
1min, while any subsequent aggregate takes less than 1s.
---
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.
---