]> Sergey Matveev's repositories - nnn.git/commit
Multi-threaded FTS-based disk usage calculation
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 26 May 2021 16:26:59 +0000 (21:56 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 26 May 2021 16:58:38 +0000 (22:28 +0530)
commit284a3c4866b77f0d452d91aaf026068dd1e44cb1
treea1558c7c42b4f03ccc932105a6f37e1b6c76bae0
parent025b570e05a441a1cb8e4ba132fa6b2b656c8ea9
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
Makefile
misc/haiku/Makefile
src/nnn.c