1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/ext/node
Yusuke Tanaka b0ea6e0dc7
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-23 17:41:49 -07:00
..
benchmarks chore: update the copyright of c, mjs, and jsx (#25005) 2024-08-12 12:41:32 -04:00
ops fix(ext/node): import JWK octet key pairs (#25180) 2024-08-23 22:06:28 +05:30
polyfills fix(ext/node): import JWK octet key pairs (#25180) 2024-08-23 22:06:28 +05:30
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml chore(ext/node): bump minimum required version of dsa to 0.6.3 (#25154) 2024-08-22 18:19:20 -07:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
global.rs fix(ext/node): fix prismjs compatibiliy in Web Worker (#25062) 2024-08-17 11:16:43 +09:00
lib.rs chore(ext/node): use array instead of Vec to avoid wrong capacity allocation (#25183) 2024-08-23 17:41:49 -07:00
polyfill.rs fix(ext/node): register node:wasi built-in (#25134) 2024-08-22 09:03:52 +05:30
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00

deno_node

require and other node related functionality for Deno.