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

perf(ext/websocket): optimize socket.send #16320

Merged
merged 10 commits into from
Oct 19, 2022

Conversation

littledivy
Copy link
Member

Towards #16315

);
} else {
queueMicrotask(() => {
this[_bufferedAmount] -= d;
Copy link
Member Author

Choose a reason for hiding this comment

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

WPT assume that data is sent on the next tick so we have to delay decrementing the buffered amount counter.

@littledivy littledivy added this to the 1.27 milestone Oct 19, 2022
@littledivy littledivy merged commit 36307c4 into denoland:main Oct 19, 2022
bartlomieju added a commit to bartlomieju/deno that referenced this pull request Oct 31, 2022
crowlKats added a commit to crowlKats/deno that referenced this pull request Jan 20, 2023
crowlKats added a commit that referenced this pull request Jan 20, 2023
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