Skip to content

Commit af8816c

Browse files
committed
fix: remove unused limit field and unnecessary qualifications
- Remove unused 'limit' field from OwnedQueryFilters struct - Use imported Arc instead of std::sync::Arc in index_multi_drive
1 parent 71e14c5 commit af8816c

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ members = [
3232
# Workspace Package Metadata (inherited by all crates)
3333
# ─────────────────────────────────────────────────────────────────────────────
3434
[workspace.package]
35-
version = "0.2.9"
35+
version = "0.2.10"
3636
edition = "2024"
3737
rust-version = "1.85"
3838
license = "MPL-2.0 OR LicenseRef-UFFS-Commercial"
@@ -116,7 +116,7 @@ chrono = { version = "0.4.41", features = ["serde"] }
116116
time = { version = "0.3.45", features = ["macros", "formatting"] }
117117

118118
# ───── Configuration ─────
119-
toml = "0.1.30"
119+
toml = "0.9.8"
120120
dirs-next = "2.0.0"
121121

122122
# ───── Testing & Benchmarking ─────

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Traditional file search tools (including `os.walk`, `FindFirstFile`, etc.) work
2121

2222
**UFFS reads the MFT directly** - once - and queries it in memory using Polars DataFrames. This is like reading the entire phonebook once instead of looking up each name individually.
2323

24-
### Benchmark Results (v0.2.9)
24+
### Benchmark Results (v0.2.10)
2525

2626
| Drive Type | Records | Time | Throughput |
2727
|------------|---------|------|------------|
@@ -33,7 +33,7 @@ Traditional file search tools (including `os.walk`, `FindFirstFile`, etc.) work
3333

3434
| Comparison | Records | Time | Notes |
3535
|------------|---------|------|-------|
36-
| **UFFS v0.2.9** | **18.7 Million** | **~142 seconds** | All disks, fast mode |
36+
| **UFFS v0.2.10** | **18.7 Million** | **~142 seconds** | All disks, fast mode |
3737
| UFFS v0.1.30 | 18.7 Million | ~315 seconds | Baseline |
3838
| Everything | 19 Million | 178 seconds | All disks |
3939
| WizFile | 6.5 Million | 299 seconds | Single HDD |

crates/uffs-cli/src/commands.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,6 @@ struct OwnedQueryFilters {
617617
min_size: Option<u64>,
618618
/// Maximum file size filter.
619619
max_size: Option<u64>,
620-
/// Maximum number of results to return (per drive, not total).
621-
limit: u32,
622620
}
623621

624622
#[cfg(windows)]
@@ -632,7 +630,6 @@ impl OwnedQueryFilters {
632630
dirs_only: filters.dirs_only,
633631
min_size: filters.min_size,
634632
max_size: filters.max_size,
635-
limit: filters.limit,
636633
}
637634
}
638635

@@ -1271,13 +1268,13 @@ async fn index_multi_drive(drives: &[char], output: &Path) -> Result<()> {
12711268

12721269
// Create a multi-progress bar for each drive (if not disabled)
12731270
let mp = create_multi_progress();
1274-
let progress_bars: Option<std::sync::Arc<std::collections::HashMap<char, ProgressBar>>> =
1271+
let progress_bars: Option<Arc<std::collections::HashMap<char, ProgressBar>>> =
12751272
mp.as_ref().map(|m| {
12761273
let mut pbs = std::collections::HashMap::new();
12771274
for &drive_char in drives {
12781275
pbs.insert(drive_char, add_drive_progress(m, drive_char));
12791276
}
1280-
std::sync::Arc::new(pbs)
1277+
Arc::new(pbs)
12811278
});
12821279

12831280
let pbs = progress_bars.clone();

0 commit comments

Comments
 (0)