mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
28f64171cb
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 |
||
---|---|---|
.. | ||
crypto | ||
os | ||
zlib | ||
fs.rs | ||
http.rs | ||
http2.rs | ||
idna.rs | ||
ipc.rs | ||
mod.rs | ||
require.rs | ||
util.rs | ||
v8.rs | ||
winerror.rs |