Re:Data Science at the Command Line
by utefan001 on Saturday January 27, 2018 @02:11PM
(#16247566)
sort | uniq -c | sort -n example in chapter 5 is something I use a lot. Do you typically use Mac or Linux? The way Mac does threading made sort 16 times slower on 1GB+ size files compared to my $300 old Lenovo laptop running Ubuntu.
[ Parent
| on HN ]
Have you tried installing it from homebrew? brew install coreutils
This assumes you have brew installed.
Yea, same issue with gnu coreutils. Mac uses a fairness threading algorithm, causing lots of time to be wasted deciding whose turn it is.
https://stackoverflow.com/questions/28888719/multi-threaded-...