From 5e17e4efdaf9a90d300174ea1186b7d04ad86192 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Sat, 25 Sep 2021 18:55:50 +1000 Subject: [PATCH] improved multithreading behaviour, & a new flag! `-j`/`--jobs` can be used to manually set the number of threads to use for scanning files. additionally, fif won't bother with multi-threaded scanning when there are less than 32 files to scan. --- .idea/runConfigurations/Run.xml | 1 + .idea/vcs.xml | 1 + CHANGELOG.md | 4 ++++ Cargo.lock | 3 +++ Cargo.toml | 3 ++- src/files.rs | 41 +++++++++++++++++++++++---------- src/formats.rs | 4 +++- src/main.rs | 24 ++++++++++++++++++- src/parameters.rs | 8 +++++++ src/tests/mod.rs | 8 +++++-- 10 files changed, 80 insertions(+), 17 deletions(-) diff --git a/.idea/runConfigurations/Run.xml b/.idea/runConfigurations/Run.xml index f367ac8..e2e10c4 100644 --- a/.idea/runConfigurations/Run.xml +++ b/.idea/runConfigurations/Run.xml @@ -6,6 +6,7 @@