Skip to content

Commit

Permalink
Release v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LyonSyonII committed Mar 14, 2024
1 parent ca57734 commit ddcbad9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 174 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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

## [2.3.0]

### 🚀 Features

- Multiple small optimizations for up to 25% performance improvement
- Parallelism is now at directory level instead of file level

## [2.2.0]

### 🚀 Features
Expand Down
168 changes: 2 additions & 166 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/LyonSyonII/hunt-rs"
keywords = ["algorithms", "filesystem"]
readme = "README.md"
license = "MIT"
version = "2.2.0"
version = "2.3.0"
authors = ["Liam G <liam.garriga@tutanota.com>"]
edition = "2021"

Expand All @@ -24,8 +24,6 @@ colored = "2.1.0"
memchr = "2.7.1"
crossbeam-channel = "0.5.12"
thin_str = "0.1.0"
thingbuf = "0.1.4"
backtrace = "0.3.69"

[target.'cfg(target_os = "linux")'.dependencies]
rustix = { version = "0.38.31", default-features = false, features = ["fs", "alloc"] }
Expand Down
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ macro_rules! perf {

fn main() -> std::io::Result<()> {
let search = structs::Cli::run();
// std::env::set_var("RUST_MIN_STACK", format!("{}", 1024 * 1024 * 1024));


perf! {
ctx = "search";
let buffers = search.search();
}
search.print_results(buffers)?;
// dbg!(&crate::search::MAX);
Ok(())
}
2 changes: 0 additions & 2 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ fn is_result(
Some((None, is_dir.then_some(path.into_boxed_path())))
}

// pub static MAX: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);

fn receive_paths(receiver: Receiver, search: &Search) -> Buffers {
use std::io::Write;

Expand Down

0 comments on commit ddcbad9

Please sign in to comment.