4 ms·
A few years ago, I found surprisingly difficult to sort a file that didn't fit in RAM in Python; I couldn't find any simple libraries for this kind of stuff. D
by cpa 7y ago
A few years ago, I found surprisingly difficult to sort a file that didn't fit in RAM in Python; I couldn't find any simple libraries for this kind of stuff.
Disappointingly, I ended up writing my data to a text file, sorting with unix sort (w/ some tuning on --parallel and --buffer-size) and reading it back.
- madhadron 7y ago> Disappointingly, I ended up writing my data to a text file, sorting with unix sort (w/ some tuning on --parallel and --buffer-size) and reading it back. One of my biggest beefs with Unix is that so much powerful functionality is locked up in command line utilities and not accessible as libraries.