Comment by commandlinefan
Comment by commandlinefan 6 months ago
> Dump whole file into buffer as one string
... unless the file is too big to fit into memory?
Comment by commandlinefan 6 months ago
> Dump whole file into buffer as one string
... unless the file is too big to fit into memory?
Memory will always be the limiting factor here. A strong adversary can ensure that you must know the whole list in order to sort it.
You can always mmap the file instead and let the OS page in and out parts of the file, however :-).