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

Reading and writing files using Java NIO #232

Merged
merged 2 commits into from Jan 14, 2023

Conversation

mkarg
Copy link
Collaborator

@mkarg mkarg commented Jan 14, 2023

This PR spares code lines and potentially improves the performance of reading and writing files by using the new single-shot instructions of Java NIO available since Java 7 instead of the previous loops and readers/writers. There is no need to do this in custom code anymore as the JRE potentially knows the best way to do the job.

@michael-o michael-o merged commit c415448 into codehaus-plexus:master Jan 14, 2023
@mkarg mkarg deleted the readFile branch January 15, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants