First noticed in browser when using browserify, however this issue can be reproduced in plain Node.
There seems to be some buffer whose size increases every time a compression is run.
In node you can reproduce this with
const brotli = require("brotli-compress");
var test_data = {foo: "bar"};
for (var i = 0; i < 1000; i++) brotli.compress(test_data);
After running this approximately 1.6 GB of memory is used.
First noticed in browser when using
browserify
, however this issue can be reproduced in plain Node. There seems to be some buffer whose size increases every time a compression is run. In node you can reproduce this withAfter running this approximately 1.6 GB of memory is used.