I have noticed that I will get stack overflow errors if I don't set the number of reducible chunks high enough when operating on large collections. The stack is a repeat of the following (my combiner is concat):
Thus far, there is always a number of chunks that allow the fold to complete successfully, but it's a guess as to what it needs to be. Is this problem something you recognize? If so, any idea why it happens? Is there a rule of thumb for setting the number of chunks?
I have noticed that I will get stack overflow errors if I don't set the number of reducible chunks high enough when operating on large collections. The stack is a repeat of the following (my combiner is
concat
):Thus far, there is always a number of chunks that allow the fold to complete successfully, but it's a guess as to what it needs to be. Is this problem something you recognize? If so, any idea why it happens? Is there a rule of thumb for setting the number of chunks?