Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timerHandles seems to leak memory quite heavily #29

Open
RobinBol opened this issue Nov 17, 2021 · 1 comment
Open

timerHandles seems to leak memory quite heavily #29

RobinBol opened this issue Nov 17, 2021 · 1 comment

Comments

@RobinBol
Copy link

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();

Screenshot 2021-11-17 at 11 20 35

@narze
Copy link

narze commented Jan 14, 2022

I did fork and attempt to fix it here https://github.com/narze/driftless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants