Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/15375#discussion_r82296182
--- Diff: R/pkg/R/context.R ---
@@ -123,19 +126,46 @@ parallelize <- function(sc, coll, numSlices = 1) {
if (numSlices > length(coll))
numSlices <- length(coll)
+ sizeLimit <- as.numeric(
+ sparkR.conf("spark.r.maxAllocationLimit",
toString(.Machine$integer.max - 10240)))
+ objectSize <- object.size(coll)
--- End diff --
Since the guess of size could easily be wrong, and writing them into disk
is not that bad anyway, should we have a much smaller default value (for
example, 100M)?
---
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]