Hi, I like to understand if there's any impact on battery if I have more flows.
What I have is a monitor block which monitors a directory for any file changes. There can be multiple files. Subsequently, upon detecting changes in each file, it'll fork a child process and loop back to the monitor block.
The advantage of this approach is there's only one monitor block and only 1 fiber, no matter the number of files. And hence, lesser battery usage. However, the disadvantage is that if there's multiple changes happening to multiple files within a few milliseconds apart, this can miss change events.
The alternative is to fork a monitor block for each file, so that each monitor will only monitor 1 file. Meaning if I have 100 files in the directory, 100 fibers will be forked. This will guarantee no files are missed.
So, my question is, for the equivalent setup, is there impact on battery when there's more flows?