`timerHandles` seems to leak memory quite heavily
RobinBol opened this issue · comments
Robin Bolscher commented
This global object gets filled but never cleared: https://github.com/dbkaplun/driftless/blob/master/src/driftless.js#L36
Using setDriftlessTimeout
a lot will create a memory leak, easily and quickly reproducible:
function setTimeoutAndLog() {
setDriftlessTimeout(() => {
setTimeoutAndLog();
}, 10)
}
setTimeoutAndLog();
Manassarn "Noom" Manoonchai commented
I did fork and attempt to fix it here https://github.com/narze/driftless