Commit Graph

9 Commits

Author SHA1 Message Date
Lynne Megido 5e17e4efda
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.
2021-09-25 18:55:50 +10:00
Lynne Megido 741048839c
replace remaining OnceCells w/ Lazys, simplifying
i prefer Lazy because it simplifies initialisation by a lot, allowing for the removal of stuff like `init_db()` and the `clap_version()` functions
2021-09-25 00:54:52 +10:00
Lynne Megido c2e6738f6b
use Lazy instead of OnceCell for MIMEDB 2021-09-24 23:53:02 +10:00
Lynne Megido 97b0a6edaa
replace cached dep with custom hashmap thing
i benchmarked it with hyperfine and in terms of performance it's pretty much identical, with a slight (fraction of a percent) advantage to my implementation
2021-09-24 22:05:12 +10:00
Lynne Megido 8a7cbca461
cargo fmt, rearranging use statements
by setting `group_imports = "StdExternalCrate"` in `rustfmt.toml`, cargo fmt/rustfmt rearranges your use statements into three groups:
- std/core/alloc,
- followed by external crates,
- followed by self/super/crate
2021-09-24 18:11:25 +10:00
Lynne Megido 2884f9fe4c
use SmartString properly 2021-08-28 18:21:53 +10:00
Lynne Megido fa49dd9fb5
merged inspectors module into files 2021-08-28 18:09:15 +10:00
Lynne Megido fb81f26ff5
cargo fmt 2021-08-28 17:59:04 +10:00
Lynne Megido 557f5132ff
new files module 2021-08-28 17:58:30 +10:00