Skip to content

timerHandles seems to leak memory quite heavily #29

@RobinBol

Description

@RobinBol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions