Closed dmgolembiowski closed 1 year ago
At present, what seems like a promising way to stop this large-directory plugin crashing + slowness seems to be some combination of:
FnOnce
to spawn new AtomicUsize
's (at 0) to have each worker fetch_add
when they contribute a discovered SearchResult
, otherwise breaking their search off when max_results
is compared to the AtomicUsize
and the latter hits the upper limit Nice to Have:
Closing this issue until some single-threaded wasm rayon support exists.
Known issue
Doesn't handle large folders well. Referenced at https://github.com/imsnif/monocle#known-issue. I'll fork a branch and attempt to see what performance I can squeeze out.