Skip to content

Transfer of execution data through socket should use buffered stream#130

Draft
Godin wants to merge 1 commit into
eclipse-eclemma:masterfrom
Godin:BufferedSocket
Draft

Transfer of execution data through socket should use buffered stream#130
Godin wants to merge 1 commit into
eclipse-eclemma:masterfrom
Godin:BufferedSocket

Conversation

@Godin
Copy link
Copy Markdown
Member

@Godin Godin commented Mar 26, 2026

See jacoco/jacoco#2089

  • apply suggestions from code review
  • update changelog

Comment on lines 46 to 47
final RemoteControlWriter writer = new RemoteControlWriter(
socket.getOutputStream());
Copy link
Copy Markdown
Member Author

@Godin Godin Mar 31, 2026

Choose a reason for hiding this comment

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

Following the same logic as in jacoco/jacoco#2089 (comment)

Suggested change
final RemoteControlWriter writer = new RemoteControlWriter(
socket.getOutputStream());
final RemoteControlWriter writer = new RemoteControlWriter(
// BufferedOutputStream will not improve performance here
// while will add memory overhead because commands are short
socket.getOutputStream());

@@ -109,7 +110,7 @@ protected IStatus run(IProgressMonitor monitor) {
final Socket socket = serverSocket.accept();
writer = new RemoteControlWriter(socket.getOutputStream());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Following the same logic as in jacoco/jacoco#2089 (comment)

Suggested change
writer = new RemoteControlWriter(socket.getOutputStream());
writer = new RemoteControlWriter(
// BufferedOutputStream will not improve performance here
// while will add memory overhead because commands are short
socket.getOutputStream());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant