You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
To scan with the
filesystem
plugin, we first walk over the whole directory tree, collect all the file names, and then loop over them.2ms/plugins/filesystem.go
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)The text was updated successfully, but these errors were encountered: