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

Resize Receive Queue to Fit Incoming Messages #565

Merged
merged 2 commits into from
Jan 5, 2016

Conversation

DirectXMan12
Copy link
Member

This PR causes the receive queue to be resized in order to fit incoming messages. There is a hard cap of a size of 40 MiB, so that we can't consume too much memory by accident.

Fixes #557

the `copyWithin` function of typed arrays has performance issues
in some versions of Chromium, and doesn't doesn't have enough
of a performance impact to justify leaving it enabled.
@DirectXMan12
Copy link
Member Author

@kanaka @samhed look good to you?

@kanaka
Copy link
Member

kanaka commented Dec 22, 2015

@DirectXMan12 looks good. Should we add a test for this function?

@DirectXMan12
Copy link
Member Author

Should we add a test for this function.

Yep, good catch. Will do.

This commit causes the receive queue to dynamically
resize to fit incoming messages.

Fixes #557
@DirectXMan12
Copy link
Member Author

@kanaka test added. I'll merge shortly unless anyone has any objections.

@kanaka
Copy link
Member

kanaka commented Dec 22, 2015

@DirectXMan12 no objections here.

@samhed
Copy link
Member

samhed commented Dec 23, 2015

LGTM!

DirectXMan12 added a commit that referenced this pull request Jan 5, 2016
Resize Receive Queue to Fit Incoming Messages
@DirectXMan12 DirectXMan12 merged commit 7e4475f into master Jan 5, 2016
@DirectXMan12 DirectXMan12 deleted the bug/dynamic-rq-resize branch January 5, 2016 19:28
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