mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -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 |
||
---|---|---|
.. | ||
cipher.rs | ||
dh.rs | ||
digest.rs | ||
mod.rs | ||
primes.rs | ||
x509.rs |