Skip to content

ProgressBar instances not garbage collected #28

@erhhung

Description

@erhhung

I wanted to simulate showing the progress of downloading hundreds of files but throttled to a small number of simultaneous downloads, so I created a simple example: https://gist.github.com/erhhung/3b8bdcbac3004907acf28de40a1cf21a

It seems that new ProgressBar instances are continuously being pushed onto the global instances[] array but never removed. I haven't looked into the code in detail to locate resource leaks, though the heap usage seems to be fairly stable.

I do see a couple of .forEach() loops on the instances[] array, so it will unnecessarily check more and more completed bars over time.

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