2 ms·
I wrote the initial sort about a year ago (w/o looking at GNU version's source). I just looked at the current version, and confirmed uutil's sort does not do an
by yincrash 11y ago
I wrote the initial sort about a year ago (w/o looking at GNU version's source). I just looked at the current version, and confirmed uutil's sort does not do any external sorting, meaning the entire input is stored in memory. Maybe someone can confirm that GNU's sort uses temporary file storage to do something like an external merge sort to reduce memory usage?
edit: confirmed. http://stackoverflow.com/questions/930044/how-could-the-unix-sort-command-sort-a-very-large-file http://stackoverflow.com/questions/930044/how-could-the-unix...