[
https://issues.apache.org/jira/browse/FLINK-9675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548748#comment-16548748
]
ASF GitHub Bot commented on FLINK-9675:
---------------------------------------
Github user zhangminglei commented on the issue:
https://github.com/apache/flink/pull/6335
Hi, @hequn8128 I will create another jira for ```new InputStreamReader```
refactor issue. What do you think ?
> Avoid FileInputStream/FileOutputStream
> --------------------------------------
>
> Key: FLINK-9675
> URL: https://issues.apache.org/jira/browse/FLINK-9675
> Project: Flink
> Issue Type: Improvement
> Reporter: Ted Yu
> Assignee: zhangminglei
> Priority: Minor
> Labels: filesystem, pull-request-available
>
> 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)