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

wrap FileWriter with BufferedWriter for better performance

    XMLWordPrintableJSON

Details

    Description

      Location: src/main/java/org/apache/flink/examples/java/relational/util/WebLogDataGenerator.java

      The FileWriter.write() method is invoked multiple times in loops, which is bad to the performance of program. The decorator class BufferedWriter can be used to alleviate the impact of frequent IO operation with caches. Therefore, when the write() method is intensively used, the BufferedWriter is highly recommended and should be preferred.

      Attachments

        1. 1.patch
          2 kB
          bd2019us

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bd2019us bd2019us
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m