2 ms·
I'm not sure if it's really a problem for ncdu use case, but in Golang all the file I/O operations consume threads (in contrast with network ones), so is not ea
by nahuel0x 5y ago
I'm not sure if it's really a problem for ncdu use case, but in Golang all the file I/O operations consume threads (in contrast with network ones), so is not easy to parallelize them: https://github.com/golang/go/issues/6817 https://github.com/golang/go/issues/6817
Btw, you forgot Rust :)
- drran 5y agoIn Rust, it's easy: https://github.com/bootandy/dust/blob/master/src/dir_walker.rs https://github.com/bootandy/dust/blob/master/src/dir_walker.... (Dust is "du + rust").