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 op_ws_next_event #16325

Merged
merged 13 commits into from
Oct 19, 2022
Prev Previous commit
fix
  • Loading branch information
littledivy committed Oct 19, 2022
commit 3a86bfc855a4f2ac29c6bd3e02e2e8fb43269adc
4 changes: 2 additions & 2 deletions ext/websocket/02_websocketstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@
await this.closed;
},
});
/* [event type, close code] */
const eventBuf = new Uint32Array(2);

const pull = async (controller) => {
/* [event type, close code] */
const eventBuf = new Uint32Array(2);
const value = await core.opAsync(
"op_ws_next_event",
this[_rid],
Expand Down