Skip to content

Adopt the coalescing writer for servers #1546

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

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 5, 2023

Motivation:

In #1357 we introduced a message frames which coalesces writes into a single buffer in a write-flush cycle to reduce the number of emitted DATA frames. This PR adopts those changes for the server.

Modifications:

  • Adjust the server state machine and handler to use the coalescing writer

Results:

Small messages are coalesced in a flush cycle within a stream.

Motivation:

In grpc#1357 we introduced a message frames which coalesces writes into a
single buffer in a write-flush cycle to reduce the number of emitted
DATA frames. This PR adopts those changes for the server.

Modifications:

- Adjust the server state machine and handler to use the coalescing
  writer

Results:

Small messages are coalesced in a flush cycle within a stream.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jan 5, 2023
@glbrntt glbrntt requested a review from Lukasa January 5, 2023 08:23
@Lukasa Lukasa enabled auto-merge (squash) January 5, 2023 09:32
@Lukasa Lukasa merged commit 4715a1d into grpc:main Jan 5, 2023
@glbrntt glbrntt deleted the gb-adopt-coalescing-writer-server branch January 5, 2023 14:02
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Jan 5, 2023
Motivation:

We added a coalescing message framer in grpc#1539 and grpc#1546. The old framer
is no longer used.

Modification:

- Remote the now unused message writer and tests

Result:

Less unused code.
@glbrntt glbrntt mentioned this pull request Jan 5, 2023
glbrntt added a commit that referenced this pull request Jan 5, 2023
Motivation:

We added a coalescing message framer in #1539 and #1546. The old framer
is no longer used.

Modification:

- Remote the now unused message writer and tests

Result:

Less unused code.
WendellXY pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

In grpc#1357 we introduced a message frames which coalesces writes into a
single buffer in a write-flush cycle to reduce the number of emitted
DATA frames. This PR adopts those changes for the server.

Modifications:

- Adjust the server state machine and handler to use the coalescing
  writer

Results:

Small messages are coalesced in a flush cycle within a stream.

Co-authored-by: Cory Benfield <lukasa@apple.com>
WendellXY pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

We added a coalescing message framer in grpc#1539 and grpc#1546. The old framer
is no longer used.

Modification:

- Remote the now unused message writer and tests

Result:

Less unused code.
pinlin168 pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

In grpc#1357 we introduced a message frames which coalesces writes into a
single buffer in a write-flush cycle to reduce the number of emitted
DATA frames. This PR adopts those changes for the server.

Modifications:

- Adjust the server state machine and handler to use the coalescing
  writer

Results:

Small messages are coalesced in a flush cycle within a stream.

Co-authored-by: Cory Benfield <lukasa@apple.com>
pinlin168 pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

We added a coalescing message framer in grpc#1539 and grpc#1546. The old framer
is no longer used.

Modification:

- Remote the now unused message writer and tests

Result:

Less unused code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants