3 ms·
> This automatically split the task into all available CPU cores. GNU sort can already utilize multiple cores, and you can override internal heuristics about w
by vthriller 8y ago
> This automatically split the task into all available CPU cores.
GNU sort can already utilize multiple cores, and you can override internal heuristics about whether it's going to be beneficial for one particular input or not with --parallel=N. Anyways, if multithreaded sort is available what you should probably do is replace `sort | uniq` with just `sort -u` to save some time on pipe IO.
- aw3c2 8y agoOh nice! `sort -u` is just as fast as `sort | uniq` for me but good call :)