Each Impit instantiation takes up a constant amount of RSS, which is (seemingly) never freed.
import { Impit } from 'impit';
for (let i = 0; i < 30000; i++) {
const impit = new Impit();
if (i % 100 === 0) {
console.log(process.memoryUsage().rss);
}
}
The expected behaviour should be constant memory usage, as the Impit instances from previous iterations are unreachable and should get GCed.
Each
Impitinstantiation takes up a constant amount of RSS, which is (seemingly) never freed.The expected behaviour should be constant memory usage, as the
Impitinstances from previous iterations are unreachable and should get GCed.