You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2019/04/30 12:00:00 UTC

[jira] [Resolved] (FLINK-12187) wrap FileWriter with BufferedWriter for better performance

     [ https://issues.apache.org/jira/browse/FLINK-12187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Metzger resolved FLINK-12187.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

Merged in https://github.com/apache/flink/commit/ca8145e54607aa46b275d09e785e7c1653f0181c

> wrap FileWriter with BufferedWriter for better performance
> ----------------------------------------------------------
>
>                 Key: FLINK-12187
>                 URL: https://issues.apache.org/jira/browse/FLINK-12187
>             Project: Flink
>          Issue Type: Bug
>          Components: Examples
>            Reporter: bd2019us
>            Priority: Major
>              Labels: patch-available, pull-request-available, pull-requests-available
>             Fix For: 1.9.0
>
>         Attachments: 1.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)