0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 23:31:24 -05:00
denoland-deno/ext
Divy Srivastava 3bd154efee
perf(ext/web): fast path for ws events (#18905)
- Do not use `ReflectHas` in `isNode`.
- Avoid copying handler array when handlers.length == 1
- Avoid searching for path target when path.length == 1

```
Linux divy-2 5.19.0-1022-gcp #24~22.04.1-Ubuntu SMP Sun Apr 23 09:51:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
32GiB System memory
Intel(R) Xeon(R) CPU @ 3.10GHz

# main + https://github.com/denoland/deno/pull/18904
Msg/sec: 89326.750000
Msg/sec: 90320.000000
Msg/sec: 89576.250000

# this patch
Msg/sec: 97250.000000
Msg/sec: 97125.500000
Msg/sec: 97964.500000
```
2023-05-04 16:18:24 +02:00
..
broadcast_channel 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
cache 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
console refactor: remove ext/console/01_colors.js (#18927) 2023-05-04 16:18:12 +02:00
crypto 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
fetch refactor: remove ext/console/01_colors.js (#18927) 2023-05-04 16:18:12 +02:00
ffi 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
fs 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
http perf(core): async op pseudo-codegen and performance work (#18887) 2023-05-04 16:18:10 +02:00
io fix(ext/io) several sync fs fixes (#18886) 2023-05-04 16:17:43 +02:00
kv fix(ext/kv): stricter structured clone serializer (#18914) 2023-05-04 16:17:46 +02:00
napi 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
net 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
node refactor: remove ext/console/01_colors.js (#18927) 2023-05-04 16:18:12 +02:00
tls 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
url fix(ext/url): throw TypeError for empty argument (#18896) 2023-05-04 16:18:15 +02:00
web perf(ext/web): fast path for ws events (#18905) 2023-05-04 16:18:24 +02:00
webidl 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00
websocket perf(ext/websocket): use internal dispatch for msg events (#18904) 2023-05-04 16:18:17 +02:00
webstorage 1.33.1 (#18895) 2023-04-28 19:05:46 +02:00