-
-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-threaded FTS-based disk usage calculation
Implements pthreads based du using FTS. Currently 4 threads are used. NFTW is dropped as there is no way to pass any custom values to fn(). FTS does not require any per entry function callback. The performance numbers are best with FTS: ./nnn-fts -T d / 5.29s user 0.94s system 116% cpu 5.335 total 1/21 du:102.402G free:8.476G files:397644 101132550144B ./nnn-ftw -T d / 5.52s user 0.94s system 116% cpu 5.534 total 1/21 du:102.400G free:8.474G files:397653 101133148160B ./nnn-4.0 -T d / 0.20s user 2.27s system 24% cpu 10.241 total 1/21 du:102.400G free:8.475G files:397654 101133299712B
- Loading branch information
Showing
3 changed files
with
144 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters