1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/ext/node/ops
Divy Srivastava 28f64171cb
fix(node): use cppgc for managing X509Certificate (#21999)
Introduces the first cppgc backed Resource into Deno.

This fixes the memory leak when using `X509Certificate`

**Comparison**:

```js
import { X509Certificate } from 'node:crypto';

const r = Deno.readFileSync('cli/tests/node_compat/test/fixtures/keys/agent1-cert.pem');

setInterval(() => {
  for (let i = 0; i < 10000; i++) {
    const cert = new X509Certificate(r);
  }
}, 1000);
```

Memory usage after 5 secs

`main`: 1692MB
`cppgc`: peaks at 400MB
2024-01-20 21:58:37 +05:30
..
crypto fix(node): use cppgc for managing X509Certificate (#21999) 2024-01-20 21:58:37 +05:30
os fix: android support (#19437) 2024-01-10 06:04:14 -07:00
zlib chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
fs.rs fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745) 2024-01-05 18:28:33 +05:30
http.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
http2.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
idna.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
ipc.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
require.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
v8.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
winerror.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00