4 ms·
Completely agree (I do this myself all the time) but keeo in mind the initial sort has not a constant cost in term of memory. Yet, one realizes how well writte
by muxator 7y ago
Completely agree (I do this myself all the time) but keeo in mind the initial sort has not a constant cost in term of memory.
Yet, one realizes how well written these basic tools are only after having some bruises with fancier tools.
- wongarsu 7y agoI don't know what POSIX says on the matter, but at least GNU sort uses some variation of merge sort with temporary files and has for all intents and purposes constant memory use.