Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZOOKEEPER-3387] Use BufferedWriter instead of FileWriter #941

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bd2019us
Copy link

ZOOKEEPER-3387 When FileWriter is used intensively within a loop, BufferedWriter can be used to improve performance by reducing IO operations.

@bd2019us bd2019us closed this May 11, 2019
@bd2019us bd2019us reopened this May 11, 2019
@bd2019us
Copy link
Author

Though the build checks have failed due to other reason, the BufferedWriter -> FileWriter changes still remain valid and applicable to the code base

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch affects only build time.
Do you see any real improvement in build time?

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch affects only build time.
Do you see any real improvement in build time?

@anmolnar
Copy link
Contributor

retest this please

Copy link
Contributor

@anmolnar anmolnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As outlined by @eolivelli this is a build-time only improvement. I appreciate your contribution @bd2019us , but Jute is not maintained anymore and we want to replace it in the long run.
How much time do you gain in build time with this change?

@anmolnar
Copy link
Contributor

@bd2019us This patch doesn't compile:

[ERROR] /home/travis/build/apache/zookeeper/zookeeper-jute/target/classes/org/apache/zookeeper/data/Stat.java:[273,17] error: reached end of file while parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants