summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
authorYusuke Tanaka <yusuktan@maguro.dev>2024-08-24 09:41:49 +0900
committerGitHub <noreply@github.com>2024-08-23 17:41:49 -0700
commitb0ea6e0dc77542b6f10e856ae3c10a8cb13d7351 (patch)
treee4dda102c837198d136539e5d8c3668a2f8a31f5 /ext/fetch/lib.deno_fetch.d.ts
parent2ab4afc6b8e90f1315e0727c9b9c714c3667dc45 (diff)
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.
Diffstat (limited to 'ext/fetch/lib.deno_fetch.d.ts')
0 files changed, 0 insertions, 0 deletions