1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/ext
Divy Srivastava e79da1679e
perf(node): use faster utf8 byte length in Buffer#from (#20746)
Use the `core.byteLength` op for string utf8 length calculation in
`node:buffer`

```
# This patch
file:///Users/divy/gh/deno/buffer.mjs
benchmark        time (avg)        iter/s             (min … max)       p75       p99      p995
----------------------------------------------------------------- -----------------------------
Buffer#from     272.11 ns/iter   3,675,029.3 (268.41 ns … 301.15 ns) 271.62 ns  295.5 ns 301.15 ns

# Deno 1.37.1
file:///Users/divy/gh/deno/buffer.mjs
benchmark        time (avg)        iter/s             (min … max)       p75       p99      p995
----------------------------------------------------------------- -----------------------------
Buffer#from     411.28 ns/iter   2,431,428.8 (393.82 ns … 439.92 ns) 418.85 ns  434.4 ns 439.92 ns
```
2023-10-13 00:39:30 +02:00
..
broadcast_channel 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
cache 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
console 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
crypto 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
fetch 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
ffi chore(ext/ffi): migrate part of FFI to op2 (#20699) 2023-10-13 00:39:28 +02:00
fs 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
http 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
io 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
kv fix(ext/kv): send queue wake messages accross different kv instances (#20465) 2023-10-13 00:39:29 +02:00
napi 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
net 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
node perf(node): use faster utf8 byte length in Buffer#from (#20746) 2023-10-13 00:39:30 +02:00
tls 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
url 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
web 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
webidl 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
websocket 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30
webstorage 1.37.1 (#20703) 2023-09-27 11:54:44 +05:30