0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/ext
Divy Srivastava 1cda3840ff
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-09-30 20:04:40 +05:30
..
broadcast_channel chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
cache chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
console chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
crypto chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
fetch chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
ffi chore(ext/ffi): migrate part of FFI to op2 (#20699) 2023-09-27 07:54:43 -06:00
fs chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
http chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
io chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
kv fix(ext/kv): send queue wake messages accross different kv instances (#20465) 2023-09-29 11:40:36 -07:00
napi chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
net chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
node perf(node): use faster utf8 byte length in Buffer#from (#20746) 2023-09-30 20:04:40 +05:30
tls chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
url chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
web chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
webidl chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
websocket chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00
webstorage chore: forward v1.37.1 release commit to main (#20706) 2023-09-27 09:13:48 +00:00