1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-13 01:22:20 -05:00
denoland-deno/ext
Yusuke Tanaka ac341d4aba
chore(ext/node): use array instead of Vec to avoid wrong capacity allocation (#25183)
This commit gets deno_node's customizer to use fixed-length array
instead of `Vec` to avoid wrong capacity allocation.

In the previous code we reserve a capacity of 14 for
`external_references`. However, after pushing all the necessary
`ExternalReference`s, it ends up with a length of 21, not 14. This means
another allocation happens even though we reserve some space.

To make sure that there will no longer be extra allocation, it should be
a good idea to use fixed-length array here.
2024-08-29 15:34:41 +02:00
..
broadcast_channel 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
cache 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
canvas 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
console 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
cron 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
crypto fix(ext/crypto): throw DataError for invalid EC key import (#25181) 2024-08-29 15:34:21 +02:00
fetch 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
ffi 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
fs 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
http 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
io 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
kv chore(build): deno_kv - remove dep on deno_node (#25158) 2024-08-29 15:33:44 +02:00
napi 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
net 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
node chore(ext/node): use array instead of Vec to avoid wrong capacity allocation (#25183) 2024-08-29 15:34:41 +02:00
node_resolver 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
tls 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
url 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
web 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
webgpu 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
webidl 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
websocket 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00
webstorage 1.46.1 (#25153) 2024-08-22 07:18:55 -07:00