Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1378

File.each is mapped to asCollection. Instead it should be mapped to asIterator to prevent out-of-memory errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • groovy-jdk
    • None

    Description

      File.each is mapped to asCollection. This leads to the file being read into the memory at once. When using big files, this could lead to memory problems. Instead it should be mapped to asIterator to prevent out-of-memory errors

      Attachments

        Activity

          People

            galleon Ryan Harris
            jbaumann Joachim Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: