GitHub user ijuma opened a pull request:
https://github.com/apache/kafka/pull/2916
WIP: Avoid FileInputStream and FileOutputStream
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ijuma/kafka no-file-input-stream
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2916.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2916
----
commit ff8a9cffc9e3cca2185148a58b6f4d06fbe69e94
Author: Ismael Juma <[email protected]>
Date: 2017-03-30T14:52:26Z
MINOR: Avoid FileInputStream and FileOutputStream
They rely on finalizers, which create unnecessary GC
load. The alternatives are as easy to use and don't
have this issue.
Also use FileChannel directly instead of retrieving
it from RandomAccessFile.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---