Skip to content

grpc-js: Optimizing buffer allocation for server server and bidi streams#2658

Open
mishimastar wants to merge 4 commits into
grpc:masterfrom
mishimastar:server-bidi-stream-memory-optimization
Open

grpc-js: Optimizing buffer allocation for server server and bidi streams#2658
mishimastar wants to merge 4 commits into
grpc:masterfrom
mishimastar:server-bidi-stream-memory-optimization

Conversation

@mishimastar

@mishimastar mishimastar commented Feb 2, 2024

Copy link
Copy Markdown

Logical continuation of PR #2652

Reduced allocated memory while making gRPC grame from 2N+5 bytes to N+5 bytes (where N is length of serialized message)

P.S. Sorry for large diff, this file does not meet the prettier conditions in master branch

@murgatroid99

Copy link
Copy Markdown
Member

For ease of review, I'd really prefer this PR to just contain the functional changes, and to handle the reformatting separately.

@mishimastar

Copy link
Copy Markdown
Author

Hope it's more readable at now

Comment thread packages/grpc-js/src/server-interceptors.ts Outdated
@murgatroid99

Copy link
Copy Markdown
Member

I'm concerned about the Linux test failures. I don't know why this change would cause some calls to be cancelled.

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.

3 participants