Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9675

Avoid FileInputStream/FileOutputStream

    XMLWordPrintableJSON

Details

    Description

      They rely on finalizers (before Java 11), which create unnecessary GC load.

      The alternatives, Files.newInputStream, are as easy to use and don't have this issue.

      And here is a benchmark https://arnaudroger.github.io/blog/2017/03/20/faster-reader-inpustream-in-java.html

      Attachments

        Issue Links

          Activity

            People

              mingleizhang zhangminglei
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: