Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-9888

OOM is happening on huge ParRanges toString

    Details

      Description

      In comparison with Range, where toString is overriden, ParRange is trying to output whole set of elements in the range, which is leads to OOM on 50mlns elements.

      scala> collection.parallel.immutable.ParRange(1, 50000000, 1, true)
      java.lang.OutOfMemoryError: Java heap space
      http://stackoverflow.com/questions/38917988/scala-parrange-memory-consumption/38925612#38925612

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                v.glushak@gmail.com Volodymyr Glushak
                Reporter:
                v.glushak@gmail.com Volodymyr Glushak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: