Skip to content

Commit ddcbad9

Browse files
committed
Release v2.3.0
1 parent ca57734 commit ddcbad9

File tree

5 files changed

+11
-174
lines changed

5 files changed

+11
-174
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.3.0]
6+
7+
### 🚀 Features
8+
9+
- Multiple small optimizations for up to 25% performance improvement
10+
- Parallelism is now at directory level instead of file level
11+
512
## [2.2.0]
613

714
### 🚀 Features

Cargo.lock

+2-166
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository = "https://github.com/LyonSyonII/hunt-rs"
66
keywords = ["algorithms", "filesystem"]
77
readme = "README.md"
88
license = "MIT"
9-
version = "2.2.0"
9+
version = "2.3.0"
1010
authors = ["Liam G <liam.garriga@tutanota.com>"]
1111
edition = "2021"
1212

@@ -24,8 +24,6 @@ colored = "2.1.0"
2424
memchr = "2.7.1"
2525
crossbeam-channel = "0.5.12"
2626
thin_str = "0.1.0"
27-
thingbuf = "0.1.4"
28-
backtrace = "0.3.69"
2927

3028
[target.'cfg(target_os = "linux")'.dependencies]
3129
rustix = { version = "0.38.31", default-features = false, features = ["fs", "alloc"] }

src/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ macro_rules! perf {
4444

4545
fn main() -> std::io::Result<()> {
4646
let search = structs::Cli::run();
47-
// std::env::set_var("RUST_MIN_STACK", format!("{}", 1024 * 1024 * 1024));
48-
47+
4948
perf! {
5049
ctx = "search";
5150
let buffers = search.search();
5251
}
5352
search.print_results(buffers)?;
54-
// dbg!(&crate::search::MAX);
5553
Ok(())
5654
}

src/search.rs

-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ fn is_result(
151151
Some((None, is_dir.then_some(path.into_boxed_path())))
152152
}
153153

154-
// pub static MAX: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);
155-
156154
fn receive_paths(receiver: Receiver, search: &Search) -> Buffers {
157155
use std::io::Write;
158156

0 commit comments

Comments
 (0)