Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Qt sorts text files with 200 million lines of strings?
Qt sorts text files with 200 million lines of strings?
Piecewise sorting

First, split the file into multiple files with 100W line, then sort the single file and record the maximum and minimum order of each file (your third field seems to be full of long integer data, which can be directly recorded in long integer data).

Then, after merging and sorting two similar files, split the files into two parts (two files 100W line data) and record the maximum and minimum order of the two files, and do this in turn until all files do not contain each other, and then merge the files into one file.