src: release memory for zstd contexts in `Close()` · nodejs/node@3032a7e · GitHub
Skip to content

Commit 3032a7e

Browse files
addaleaxaduh95
authored andcommitted
src: release memory for zstd contexts in Close()
This aligns zstd streams with other compression libraries in this regard, and enables releasing memory early when the stream ends in JS instead of waiting for GC to clean up the wrapper object (which is a problem that is exacerbated in the zstd context because we do not track memory and report memory pressure to V8 yet). PR-URL: #61717 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 0101855 commit 3032a7e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/node_zlib.cc

Lines changed: 10 additions & 3 deletions

0 commit comments

Comments
 (0)