Skip to content

du: Use rustc-hash for du -a / performance#10663

Merged
sylvestre merged 1 commit intouutils:mainfrom
oech3:du-hash
Feb 4, 2026
Merged

du: Use rustc-hash for du -a / performance#10663
sylvestre merged 1 commit intouutils:mainfrom
oech3:du-hash

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Feb 2, 2026

No description provided.

@oech3

This comment was marked as resolved.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 2, 2026

Merging this PR will improve performance by 24.89%

⚡ 5 improved benchmarks
✅ 279 untouched benchmarks
⏩ 38 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation du_wide_tree[(5000, 500)] 12.3 ms 9.9 ms +24.89%
Simulation du_deep_tree[(100, 3)] 1.4 ms 1.2 ms +8.57%
Simulation du_max_depth_balanced_tree[(6, 4, 10)] 32.4 ms 27.5 ms +17.82%
Simulation du_all_wide_tree[(5000, 500)] 19.1 ms 16.7 ms +14.53%
Simulation du_summarize_balanced_tree[(5, 4, 10)] 8.3 ms 7.1 ms +16.62%

Comparing oech3:du-hash (9926073) with main (1ea01a3)2

Open in CodSpeed

Footnotes

  1. 38 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (a3eab5c) during the generation of this report, so 1ea01a3 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@oech3 oech3 marked this pull request as ready for review February 2, 2026 19:37
@oech3
Copy link
Contributor Author

oech3 commented Feb 2, 2026

If someone du many files on unreliable network, we should fallback to crypto-algo. But I don't think that it is needed
(but we already have blake3 dep at cksum).

@oech3 oech3 force-pushed the du-hash branch 3 times, most recently from 719fa6c to 03d5a76 Compare February 3, 2026 18:46
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/basenc/bounded-memory is now being skipped but was previously passing.

@sylvestre sylvestre merged commit 68d6344 into uutils:main Feb 4, 2026
155 checks passed
@oech3 oech3 deleted the du-hash branch February 4, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants