bug#7182: sort -R slow

2010-10-09 Thread Ole Tange
I recently needed to randomize some lines. So I tried using 'sort -R'. I was astonished how slow that was. So I tested how slow a competing strategies are. GNU sort is two magnitudes slower than unsort and more than one magnitude slower than perl: $ time unsort file real0m1.388s $ unsort

bug#7182: sort -R slow

2010-10-09 Thread Alan Curry
Ole Tange writes: I recently needed to randomize some lines. So I tried using 'sort -R'. I was astonished how slow that was. So I tested how slow a competing strategies are. GNU sort is two magnitudes slower than unsort and more than one magnitude slower than perl: Never heard of unsort.

bug#7182: sort -R slow

2010-10-09 Thread Davide Brini
On Sat, 9 Oct 2010 14:52:41 +0200 Ole Tange ta...@gnu.org wrote: I recently needed to randomize some lines. So I tried using 'sort -R'. I was astonished how slow that was. So I tested how slow a competing strategies are. GNU sort is two magnitudes slower than unsort and more than one