Skip to content

High CPU usage #32

@RichardHooijmaijers

Description

@RichardHooijmaijers

I tested the package on a windows 10 machine with Intel Core i5-13400T.
During these tests I noticed that the CPU usage was quite high, even when applied to a relatively small folder.
When having two instances of watcher I noticed that CPU usage was ~50%.

Not sure if there is anything that could be done within the package and maybe it is directly linked to ReadDirectoryChangesW?
I originally planned to have a few instances running, which might lead to problems (e.g. 4 instances uses almost all of my CPU).

No idea if it is helpful but the function recurse into a directory, could it help to have an option to not watch recursively?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions