1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext
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
..
broadcast_channel chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
cache chore(ext/cache): remove CachePutResource in preparation for resource rewrite (#21949) 2024-01-15 13:14:54 -07:00
console feat(unstable): add Temporal API support (#21738) 2024-01-15 01:26:57 +01:00
cron chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
crypto chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
fetch chore: upgrade deno_core to 0.247.0 (#21974) 2024-01-18 17:57:22 +01:00
ffi chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
fs chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
http chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
io chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
kv chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
napi chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
net chore: bump rustls-tokio-stream and rustls (#21955) 2024-01-16 21:51:54 +01:00
node fix(node): use cppgc for managing X509Certificate (#21999) 2024-01-20 21:58:37 +05:30
tls chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
url chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
web chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
webgpu feat:: External webgpu surfaces / BYOW (#21835) 2024-01-19 22:49:14 +05:30
webidl chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
websocket chore: bump rustls-tokio-stream and rustls (#21955) 2024-01-16 21:51:54 +01:00
webstorage chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00