Github user hhbyyh commented on the pull request:
https://github.com/apache/spark/pull/11078#issuecomment-183636091
Thanks for the review. I tested the change and the max memory dropped from
2.2G to 2G as observed from JConsole. I'll make a new benchmark and post the
details here.
@srowen Removing the flatten did help. Also I think removing the ++ and use
the C style loop helps decrease the max memory consumption.
@mengxr Just personal understanding. Since there's no sequential
intermediate operations. I thought being lazy does not help a lot on saving
memory. Anyway I'll re-verify the improvement.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]