Improve filesystem scanning with parallelism
baruchiro opened this issue · 1 comments
baruchiro commented
To scan with the filesystem
plugin, we first walk over the whole directory tree, collect all the file names, and then loop over them.
Lines 64 to 92 in 8d71105
Instead, we can immediately handle every file we find, by sending it into a channel or launching a new gorutine.
(I'm not sure what will be the best approach. I think maybe launching a new routine for each file will be the most parallelism degree, but maybe to control all the routines and wait for them, we need to use a channel from the walk
function to one goroutine that will trigger all the goroutines per file)
binyamin2 commented
Hi, please assign for me the issue.