summaryrefslogtreecommitdiff
path: root/cli/tsc/00_typescript.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-03-31 10:34:12 +0530
committerGitHub <noreply@github.com>2023-03-31 10:34:12 +0530
commit0f41aff1d9f6c131ff69d6dd1dc053afb008a19d (patch)
treed4b21f4519610d22fa0f83214fa05c1af3415ffb /cli/tsc/00_typescript.js
parent772201449713fbefad6c42b9ce545a5bb2d7499b (diff)
perf(ext/websocket): efficient event kind serialization (#18509)
Use u16 to represent the kind of event (0 - 6) & event code > 6 is treated as the close code. This way we can represent all events + the close code in a single JS number. This is safe because (as per RFC 6455) close code from 0-999 are reserved & not used. | name | avg msg/sec/core | | --- | --- | | deno_main | `127820.750000` | | deno #18506 | `140079.000000` | | deno #18506 + this | `150104.250000` |
Diffstat (limited to 'cli/tsc/00_typescript.js')
0 files changed, 0 insertions, 0 deletions