1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/ext/websocket
Divy Srivastava aa9b94a80e
perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525)
This commit adds a new core API `opAsync2` to call an async op with
atmost 2 arguments. Spread argument iterators has a pretty big perf hit
when calling ops.

| name | avg msg/sec/core |
| --- | --- |
| 1.32.1 | `127820.750000` |
| #18506 | `140079.000000` |
| #18506 + #18509 | `150104.250000` |
| #18506 + #18509 + this | `157340.000000` |
2023-03-31 21:28:21 +05:30
..
01_websocket.js perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525) 2023-03-31 21:28:21 +05:30
02_websocketstream.js perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 10:34:12 +05:30
Cargo.toml chore: forward v1.32.1 release commit to main (#18399) 2023-03-23 22:55:23 +01:00
lib.deno_websocket.d.ts chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
lib.rs perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 10:34:12 +05:30
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_websocket

This op crate implements the websocket functions of Deno.

Spec: https://html.spec.whatwg.org/multipage/web-sockets.html