4 ms·
I’m surprised by the statement that ‘cat’ is slow because it’s not multithreaded. Isn’t ‘cat’ io-bound?
by Ecco 6y ago
I’m surprised by the statement that ‘cat’ is slow because it’s not multithreaded.
Isn’t ‘cat’ io-bound?
- IshKebab 6y agoI think his point is that you can match `cat`s speed because it is IO bound and you can make a linker IO bound by using lots of threads.
- 082349872349872 6y agoIt used to be lore in the industry that any decent linker is IO bound, including the single-threaded ones.
- baruch 6y agoOne way to speed up IO-bound code is to have multiple threads-of-execution (threads or async-io) in order to have multiple requests in the air. Specifically SSDs benefit a lot from multiple requests in parallel as that utilizes their internal parallelism. HDDs would benefit only a little bit but RAIDed HDDs can also benefit from parallelism.