4 ms·
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 slowe
by utefan001 9y ago
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.
- vondur 9y agoHave you tried installing it from homebrew? brew install coreutils This assumes you have brew installed.
- utefan001 9y agoYea, 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-c-program-much-slower-in-os-x-than-linux https://stackoverflow.com/questions/28888719/multi-threaded-...