2 ms·
I've never used it but there's a -S flag for sort that allows you to specify buffer size. So maybe look into increasing that as large as you can.
by secretasiandan 16y ago
I've never used it but there's a -S flag for sort that allows you to specify buffer size. So maybe look into increasing that as large as you can.
- sqrt17 16y ago-S is quite useful. For bigger sorting tasks, I usually use -S50% to speed up the speed of sorting. (sort's default memory size must be about 1MB). It may also help to use compression with the temporary files (something like "--compress-program lzop"), but I've never tried that.