1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 03:23:17 -05:00
denoland-deno/ext/websocket
Divy Srivastava 8088a7b786 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 11:43:20 -06:00
..
01_websocket.js perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525) 2023-03-31 11:43:20 -06:00
02_websocketstream.js perf(ext/websocket): efficient event kind serialization (#18509) 2023-03-31 11:43:20 -06:00
Cargo.toml 1.32.1 (#18396) 2023-03-23 21:00: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 11:43:20 -06:00
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