-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: HTTP1ToGRPCServerCodec currently creates a temporary array for parsing all messages into before it forwards them on. This is both a minor perf drain (due to the extra allocations) and a correctness problem, as it makes this channel handler non-reentrant-safe. We should fix both issues. Modifications: - Replace the temporary array with a simple loop. - Add tests that validates correct behaviour on reentrancy. Result: Better re-entrancy behaviour! Verrrry slightly better perf.
- Loading branch information
Showing
3 changed files
with
152 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters